Plugin Directory

Changeset 1198086


Ignore:
Timestamp:
07/13/2015 03:10:34 PM (11 years ago)
Author:
PluginCentral
Message:

Bug for for undefined index publish_action limit-posts.php 205.

Location:
limit-posts/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • limit-posts/trunk/limit-posts.php

    r1198074 r1198086  
    216216            //how many posts of this type has this user published within the rules time periods
    217217            $startDateTime = $this->getStartDateTime($releventRule['period_number'], $releventRule['period_denominator']);
    218             $postCount = $this->getPostCount($currentType, $startDateTime, $releventRule['publish_action']);
     218            $ruleAction = 'Publish';
     219            if(isset($releventRule['publish_action'])){
     220                $ruleAction = $releventRule['publish_action'];
     221            }
     222            $postCount = $this->getPostCount($currentType, $startDateTime, $ruleAction);
    219223            //echo 'POST COUNT = '.$postCount;
    220224            if($postCount >= $releventRule['limit']){
  • limit-posts/trunk/readme.txt

    r1198074 r1198086  
    55Requires at least: 4.0.0
    66Tested up to: 4.2.2
    7 Stable tag: 1.0.4
     7Stable tag: 1.0.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    105105Publish or Submit for review can now be chosen for a rule.
    106106
     107= 1.0.5 =
     108Bug fix - undefined index publish_action limit-posts 205.
     109
    107110== Upgrade Notice ==
    108111
Note: See TracChangeset for help on using the changeset viewer.