WordPress.org

Plugin Directory

Changeset 624539


Ignore:
Timestamp:
11/13/12 10:54:13 (18 months ago)
Author:
bainternet
Message:

fixed Missing argument 2 for bapl::limit_xml_rpc() issue and tagged 2.7

Location:
bainternet-posts-creation-limits
Files:
3 deleted
2 edited
3 copied

Legend:

Unmodified
Added
Removed
  • bainternet-posts-creation-limits/tags/2.7/bapl.php

    r624038 r624539  
    44Plugin URI: http://en.bainternet.info/category/plugins 
    55Description: this plugin helps you to limit the number of posts/pages/custom post types each user can create on your site. 
    6 Version: 2.6 
     6Version: 2.7 
    77Author: bainternet 
    88Author URI: http://en.bainternet.info 
     
    5858         * @return true to limit false to allow 
    5959         */ 
    60         public function limit_xml_rpc($maybe,$postarr){ 
     60        public function limit_xml_rpc($maybe,$postarr = array()){ 
    6161            //exit early if not xmlrpc request 
    6262            if (!defined('XMLRPC_REQUEST') ||  XMLRPC_REQUEST != true) 
    6363                return $maybe; 
    64  
    65             if ($this->limitUser($postarr['post_author'],$postarr['post_type'])) 
     64             
     65            if (isset($postarr['post_post_type']) &&  isset($postarr['post_author']) && $this->limitUser($postarr['post_author'],$postarr['post_type'])) 
    6666                return apply_filters('bapl_xml_rpc_limit',true); 
     67 
     68            return $maybe; 
    6769 
    6870        } 
  • bainternet-posts-creation-limits/tags/2.7/readme.txt

    r624038 r624539  
    44Tags: limits, cpt limits, posts per user, limit pages, limit user, post creating limit, post limit, user post limit 
    55Requires at least: 3.0 
    6 Tested up to: 3.4.1 
    7 Stable tag: 2.6 
     6Tested up to: 3.5 beta 1 
     7Stable tag: 2.7 
    88 
    99this plugin helps you to limit the number of posts/pages/custom post types each user can create on your site. 
     
    119119 
    120120== Changelog == 
     1212.7 Fixed Missing argument 2 for bapl::limit_xml_rpc() issue. 
     122 
    1211232.6 `trash` is now  check in `any` status as well. 
    122124 
  • bainternet-posts-creation-limits/trunk/bapl.php

    r624038 r624539  
    44Plugin URI: http://en.bainternet.info/category/plugins 
    55Description: this plugin helps you to limit the number of posts/pages/custom post types each user can create on your site. 
    6 Version: 2.6 
     6Version: 2.7 
    77Author: bainternet 
    88Author URI: http://en.bainternet.info 
     
    5858         * @return true to limit false to allow 
    5959         */ 
    60         public function limit_xml_rpc($maybe,$postarr){ 
     60        public function limit_xml_rpc($maybe,$postarr = array()){ 
    6161            //exit early if not xmlrpc request 
    6262            if (!defined('XMLRPC_REQUEST') ||  XMLRPC_REQUEST != true) 
    6363                return $maybe; 
    64  
    65             if ($this->limitUser($postarr['post_author'],$postarr['post_type'])) 
     64             
     65            if (isset($postarr['post_post_type']) &&  isset($postarr['post_author']) && $this->limitUser($postarr['post_author'],$postarr['post_type'])) 
    6666                return apply_filters('bapl_xml_rpc_limit',true); 
     67 
     68            return $maybe; 
    6769 
    6870        } 
  • bainternet-posts-creation-limits/trunk/readme.txt

    r624038 r624539  
    44Tags: limits, cpt limits, posts per user, limit pages, limit user, post creating limit, post limit, user post limit 
    55Requires at least: 3.0 
    6 Tested up to: 3.4.1 
    7 Stable tag: 2.6 
     6Tested up to: 3.5 beta 1 
     7Stable tag: 2.7 
    88 
    99this plugin helps you to limit the number of posts/pages/custom post types each user can create on your site. 
     
    119119 
    120120== Changelog == 
     1212.7 Fixed Missing argument 2 for bapl::limit_xml_rpc() issue. 
     122 
    1211232.6 `trash` is now  check in `any` status as well. 
    122124 
Note: See TracChangeset for help on using the changeset viewer.