Plugin Directory

Changeset 1064003


Ignore:
Timestamp:
01/09/2015 03:08:34 PM (11 years ago)
Author:
benohead
Message:

tagging version 0.3.3

Location:
wp-disable-comments
Files:
1 added
4 edited
11 copied

Legend:

Unmodified
Added
Removed
  • wp-disable-comments/tags/0.3.3/bootstrap.php

    r1064002 r1064003  
    33Plugin Name: WP Disable Comments
    44Plugin URI:  https://wordpress.org/plugins/wp-disable-comments/
    5 Description: A plugin to place adsense blocks on your site
    6 Version:     0.3.1
     5Description: Disable comments, trackbacks and/or pingbacks
     6Version:     0.3.3
    77Author:      Henri Benoit
    88Author URI:  http://benohead.com
  • wp-disable-comments/tags/0.3.3/classes/wp-disable-comments.php

    r1035323 r1064003  
    1313        protected $modified_types = array();
    1414
    15         const VERSION = '0.3.1';
     15        const VERSION = '0.3.3';
    1616        const PREFIX = 'wpdc_';
    1717        const DEBUG_MODE = false;
     
    246246            $disable_where = $this->modules['WPDC_Settings']->settings['disablewhere'];
    247247            $disable_checkboxes = $disable_where['disable-checkboxes'];
     248            error_log("post_type=".$post_type);
     249            error_log("disable_checkboxes=".print_r($disable_checkboxes, true));
    248250            if (isset($post_type) && count($disable_checkboxes) > 0 && in_array($post_type, $disable_checkboxes)) {
    249251                return "closed";
     
    271273            elseif (isset($_REQUEST['post_type']))
    272274                return sanitize_key($_REQUEST['post_type']);
     275
     276            elseif ($current_screen && $current_screen->id && $current_screen->id=='async-upload') {
     277                return "attachment";
     278            }
    273279
    274280            //we do not know the post type!
     
    402408        }
    403409
    404 
    405410        function filter_xmlrpc_methods($methods)
    406411        {
  • wp-disable-comments/tags/0.3.3/readme.txt

    r1064002 r1064003  
    55Requires at least: 3.0.1
    66Tested up to: 4.0.1
    7 Stable tag: 0.3.1
     7Stable tag: 0.3.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6464== Changelog ==
    6565
    66 = 0.3 =
     66= 0.3.3 =
     67
     68* Fixed disabling checkboxes for post type Media
     69
     70= 0.3.2 =
     71
     72* Fixed plugin description and change log entry for 0.3.1
     73
     74= 0.3.1 =
    6775
    6876* Fixed strict PHP warnings
  • wp-disable-comments/trunk/bootstrap.php

    r1035323 r1064003  
    33Plugin Name: WP Disable Comments
    44Plugin URI:  https://wordpress.org/plugins/wp-disable-comments/
    5 Description: A plugin to place adsense blocks on your site
    6 Version:     0.3.1
     5Description: Disable comments, trackbacks and/or pingbacks
     6Version:     0.3.3
    77Author:      Henri Benoit
    88Author URI:  http://benohead.com
  • wp-disable-comments/trunk/classes/wp-disable-comments.php

    r1035323 r1064003  
    1313        protected $modified_types = array();
    1414
    15         const VERSION = '0.3.1';
     15        const VERSION = '0.3.3';
    1616        const PREFIX = 'wpdc_';
    1717        const DEBUG_MODE = false;
     
    246246            $disable_where = $this->modules['WPDC_Settings']->settings['disablewhere'];
    247247            $disable_checkboxes = $disable_where['disable-checkboxes'];
     248            error_log("post_type=".$post_type);
     249            error_log("disable_checkboxes=".print_r($disable_checkboxes, true));
    248250            if (isset($post_type) && count($disable_checkboxes) > 0 && in_array($post_type, $disable_checkboxes)) {
    249251                return "closed";
     
    271273            elseif (isset($_REQUEST['post_type']))
    272274                return sanitize_key($_REQUEST['post_type']);
     275
     276            elseif ($current_screen && $current_screen->id && $current_screen->id=='async-upload') {
     277                return "attachment";
     278            }
    273279
    274280            //we do not know the post type!
     
    402408        }
    403409
    404 
    405410        function filter_xmlrpc_methods($methods)
    406411        {
  • wp-disable-comments/trunk/readme.txt

    r1035323 r1064003  
    55Requires at least: 3.0.1
    66Tested up to: 4.0.1
    7 Stable tag: 0.3.1
     7Stable tag: 0.3.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6464== Changelog ==
    6565
    66 = 0.3 =
     66= 0.3.3 =
     67
     68* Fixed disabling checkboxes for post type Media
     69
     70= 0.3.2 =
     71
     72* Fixed plugin description and change log entry for 0.3.1
     73
     74= 0.3.1 =
    6775
    6876* Fixed strict PHP warnings
Note: See TracChangeset for help on using the changeset viewer.