Plugin Directory

Changeset 1198640


Ignore:
Timestamp:
07/14/2015 10:15:45 AM (11 years ago)
Author:
PluginCentral
Message:

Bug fix - Undefined index : publish_action limit-posts 332. New tag created 1.0.6.

Location:
limit-posts
Files:
3 edited
2 copied

Legend:

Unmodified
Added
Removed
  • limit-posts/tags/1.0.6/limit-posts.php

    r1198090 r1198640  
    44Plugin URI: www.limitposts.com
    55Description: A plugin to allow administrators to limit the number of posts a user can publish in a given time period.
    6 Version: 1.0.5
     6Version: 1.0.6
    77Author: PluginCentral
    88Author URI: https://profiles.wordpress.org/plugincentral/
     
    330330        foreach($inputRules as $rule){
    331331            //echo 'publish_action = '.$rule['publish_action'].' $publishAction = '.$publishAction;
    332             if(strtolower($rule['publish_action']) == strtolower($publishAction)){
     332            $ruleAction = 'Publish';
     333            if(isset($rule['publish_action'])){
     334                $ruleAction = $rule['publish_action'];
     335            }
     336            if(strtolower($ruleAction) == strtolower($publishAction)){
    333337                $filterRules[] = $rule;
    334338            }
  • limit-posts/tags/1.0.6/readme.txt

    r1198086 r1198640  
    55Requires at least: 4.0.0
    66Tested up to: 4.2.2
    7 Stable tag: 1.0.5
     7Stable tag: 1.0.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    108108Bug fix - undefined index publish_action limit-posts 205.
    109109
     110= 1.0.6 =
     111Bug fix - undefined index publish_action limit-posts 332.
     112
    110113== Upgrade Notice ==
    111114
  • limit-posts/trunk/limit-posts.php

    r1198090 r1198640  
    44Plugin URI: www.limitposts.com
    55Description: A plugin to allow administrators to limit the number of posts a user can publish in a given time period.
    6 Version: 1.0.5
     6Version: 1.0.6
    77Author: PluginCentral
    88Author URI: https://profiles.wordpress.org/plugincentral/
     
    330330        foreach($inputRules as $rule){
    331331            //echo 'publish_action = '.$rule['publish_action'].' $publishAction = '.$publishAction;
    332             if(strtolower($rule['publish_action']) == strtolower($publishAction)){
     332            $ruleAction = 'Publish';
     333            if(isset($rule['publish_action'])){
     334                $ruleAction = $rule['publish_action'];
     335            }
     336            if(strtolower($ruleAction) == strtolower($publishAction)){
    333337                $filterRules[] = $rule;
    334338            }
  • limit-posts/trunk/readme.txt

    r1198086 r1198640  
    55Requires at least: 4.0.0
    66Tested up to: 4.2.2
    7 Stable tag: 1.0.5
     7Stable tag: 1.0.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    108108Bug fix - undefined index publish_action limit-posts 205.
    109109
     110= 1.0.6 =
     111Bug fix - undefined index publish_action limit-posts 332.
     112
    110113== Upgrade Notice ==
    111114
Note: See TracChangeset for help on using the changeset viewer.