Plugin Directory

Changeset 426006


Ignore:
Timestamp:
08/19/2011 07:32:41 PM (15 years ago)
Author:
btks
Message:

Version 0.1.3.1 - Fixes Errror with Max Posts a Day

Location:
wordpress-restrictions
Files:
2 edited
3 copied

Legend:

Unmodified
Added
Removed
  • wordpress-restrictions/tags/0.1.3.1/readme.txt

    r425987 r426006  
    55Requires at least: 3.1
    66Tested up to: 3.2.1
    7 Stable tag: 0.1.3
     7Stable tag: 0.1.3.1
    88
    99WordPress Restrictions allows you to set restrictions on when and what content can be edited/deleted on your WordPress Install.
  • wordpress-restrictions/tags/0.1.3.1/wp-restrictions.php

    r425987 r426006  
    44Plugin URI: http://sonicedges.com/plugins/wordpress-restrictions/
    55Description: With WordPress Restrictions, you can specify when and what content may be edited/deleted by Editors and/or Authors.
    6 Version: 0.1.3
     6Version: 0.1.3.1
    77Author: Brandon Smith
    88Author URI: http://sonicedges.com/
    99*/
    1010
    11 define('WP_REST_VERSION', '0.1.3');
     11define('WP_REST_VERSION', '0.1.3.1');
    1212define('WP_REST_CURR_DAY', date("j"));
    1313define('WP_REST_CURR_MONTH', date("n"));
     
    360360        $max_posts = $wp_restrictions[WP_REST_ROLE]['max_posts'];
    361361
    362         if ($post_count >= $wp_restrictions[WP_REST_ROLE]['max_posts']) {
     362        if ($post_count != '' && $post_count >= $wp_restrictions[WP_REST_ROLE]['max_posts']) {
    363363            remove_submenu_page('edit.php', 'post-new.php');
    364364
  • wordpress-restrictions/trunk/readme.txt

    r425987 r426006  
    55Requires at least: 3.1
    66Tested up to: 3.2.1
    7 Stable tag: 0.1.3
     7Stable tag: 0.1.3.1
    88
    99WordPress Restrictions allows you to set restrictions on when and what content can be edited/deleted on your WordPress Install.
  • wordpress-restrictions/trunk/wp-restrictions.php

    r425987 r426006  
    44Plugin URI: http://sonicedges.com/plugins/wordpress-restrictions/
    55Description: With WordPress Restrictions, you can specify when and what content may be edited/deleted by Editors and/or Authors.
    6 Version: 0.1.3
     6Version: 0.1.3.1
    77Author: Brandon Smith
    88Author URI: http://sonicedges.com/
    99*/
    1010
    11 define('WP_REST_VERSION', '0.1.3');
     11define('WP_REST_VERSION', '0.1.3.1');
    1212define('WP_REST_CURR_DAY', date("j"));
    1313define('WP_REST_CURR_MONTH', date("n"));
     
    360360        $max_posts = $wp_restrictions[WP_REST_ROLE]['max_posts'];
    361361
    362         if ($post_count >= $wp_restrictions[WP_REST_ROLE]['max_posts']) {
     362        if ($post_count != '' && $post_count >= $wp_restrictions[WP_REST_ROLE]['max_posts']) {
    363363            remove_submenu_page('edit.php', 'post-new.php');
    364364
Note: See TracChangeset for help on using the changeset viewer.