Plugin Directory

Changeset 229761


Ignore:
Timestamp:
04/16/2010 02:16:29 AM (15 years ago)
Author:
mgolawala
Message:

Fixed bug reported by subsky where upadting the category was displaying an error. The issue here was that there was some blank space above the php script causing some of the page to get rendered and sent back before the no-cache header settings were set. At which point it was too late to modify the header

Location:
wp-category-manager/tags/1.2.0.1
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-category-manager/tags/1.2.0.1/manage-category.php

    r228737 r229761  
    1 
    21<?php
    32/*
    43 * This page is executed via an ajax call from the wordpress admin when actions are performed
    54 */
     5
     6// Since this is an API Page, Set no caching. We dont want anything accidentally not updating.
     7// ToDo: In a future revision, it would make sense to add a query string parameter similar to allowCache=true that would allow caching of calls to the API
     8if ($_SERVER['REQUEST_METHOD'] === 'GET')
     9{
     10    header("Cache-Control: no-store, no-cache");
     11    header("Pragma: no-cache");
     12}
    613
    714
     
    2532if($_REQUEST['action'] == 'getPosts')
    2633{
    27     //Set no caching
    28     header("Cache-Control: no-store, no-cache");
    29     header("Pragma: no-cache");
    30 
    3134    //var_dump($_GET['category']);
    3235    renderPosts(getPostListForCat($_GET['category']));
  • wp-category-manager/tags/1.2.0.1/readme.txt

    r228752 r229761  
    44Requires at least: 2.8.1
    55Tested up to: 2.9.2
    6 Stable tag: 1.2.0.0
     6Stable tag: 1.2.0.1
    77
    88The WP Category Manager plugin makes it easier to manage categories that are used to control the posts within widgets in the presentation layer
     
    3939== Changelog ==
    4040
     41= 1.2.0.1 =
     42Fixed a bug where category updates, returned an error to the user in certain configurations
     43
    4144= 1.2.0.0 =
    4245* A few minor bug fixes
     
    5053= 1.0.0.0 =
    5154* Release to public. Settings page to control the category being managed, Category management module on the dashboard
    52 
  • wp-category-manager/tags/1.2.0.1/wp-category-manager.php

    r228755 r229761  
    33Plugin Name: Category Manager
    44Plugin URI: http://www.mustakes.com/wp-category-manager/
    5 Description: This plugin makes it easier to manage the addition and removal of a specific category on posts.
     5Description: This plugin makes it easier to manage the removal of a specific category on posts. Mainly used when categories are set to control display on a page.
    66Author: Mustansir Golawala
    7 Version: 1.2
     7Version: 1.2.0.1
    88Author URI: http://www.mustakes.com/
    99*/
Note: See TracChangeset for help on using the changeset viewer.