Changeset 1198086
- Timestamp:
- 07/13/2015 03:10:34 PM (11 years ago)
- Location:
- limit-posts/trunk
- Files:
-
- 2 edited
-
limit-posts.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
limit-posts/trunk/limit-posts.php
r1198074 r1198086 216 216 //how many posts of this type has this user published within the rules time periods 217 217 $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); 219 223 //echo 'POST COUNT = '.$postCount; 220 224 if($postCount >= $releventRule['limit']){ -
limit-posts/trunk/readme.txt
r1198074 r1198086 5 5 Requires at least: 4.0.0 6 6 Tested up to: 4.2.2 7 Stable tag: 1.0. 47 Stable tag: 1.0.5 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 105 105 Publish or Submit for review can now be chosen for a rule. 106 106 107 = 1.0.5 = 108 Bug fix - undefined index publish_action limit-posts 205. 109 107 110 == Upgrade Notice == 108 111
Note: See TracChangeset
for help on using the changeset viewer.