WordPress.org

Plugin Directory

Changeset 1278514


Ignore:
Timestamp:
11/03/15 11:26:47 (23 months ago)
Author:
sladix
Message:

Added page taxonomies support

Location:
restrict-taxonomies
Files:
3 edited
7 copied

Legend:

Unmodified
Added
Removed
  • restrict-taxonomies/tags/1.2/README.md

    r1276165 r1278514  
    77* Requires at least: 3.1 
    88* Tested up to: 4.3.1 
    9 * Stable tag: 1.0 
     9* Stable tag: 1.2 
    1010* License: GPLv2 or later 
    1111* License URI: http://www.gnu.org/licenses/gpl-2.0.html 
  • restrict-taxonomies/tags/1.2/readme.txt

    r1277541 r1278514  
    55Requires at least: 3.1 
    66Tested up to: 4.3.1 
    7 Stable tag: 1.1 
     7Stable tag: 1.2 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    2424== Frequently Asked Questions == 
    2525 
    26 None yet 
     26*Does this plugin also works for page taxonomies ?* 
     27Yes, the page post type will always be handled, therefore, it doesn't appear in the post types and taxonomies settings 
    2728 
    2829== Screenshots == 
     
    3536== Changelog == 
    3637 
     38= 1.2 = 
     39* Added page taxonomies support 
     40 
    3741= 1.1 = 
    3842* Added front end restrictions and settings 
  • restrict-taxonomies/tags/1.2/restrict-taxonomies.php

    r1277541 r1278514  
    55Author: Sladix 
    66Author URI: https://twitter.com/sladix 
    7 Version: 1.1 
     7Version: 1.2 
    88*/ 
    99 
     
    4444 
    4545            // If the page is the Posts screen, do our thing, otherwise chill 
    46             if ( $post_type == false || $post_type == 'post' || in_array($post_type,$post_type_options['post_types']) ) 
     46            if ( $post_type == false || $post_type == 'post' ||  $post_type == 'page' || in_array($post_type,$post_type_options['post_types']) ) 
    4747                add_action( 'admin_init', array( &$this, 'posts' ) ); 
    4848 
  • restrict-taxonomies/trunk/README.md

    r1276165 r1278514  
    77* Requires at least: 3.1 
    88* Tested up to: 4.3.1 
    9 * Stable tag: 1.0 
     9* Stable tag: 1.2 
    1010* License: GPLv2 or later 
    1111* License URI: http://www.gnu.org/licenses/gpl-2.0.html 
  • restrict-taxonomies/trunk/readme.txt

    r1277541 r1278514  
    55Requires at least: 3.1 
    66Tested up to: 4.3.1 
    7 Stable tag: 1.1 
     7Stable tag: 1.2 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    2424== Frequently Asked Questions == 
    2525 
    26 None yet 
     26*Does this plugin also works for page taxonomies ?* 
     27Yes, the page post type will always be handled, therefore, it doesn't appear in the post types and taxonomies settings 
    2728 
    2829== Screenshots == 
     
    3536== Changelog == 
    3637 
     38= 1.2 = 
     39* Added page taxonomies support 
     40 
    3741= 1.1 = 
    3842* Added front end restrictions and settings 
  • restrict-taxonomies/trunk/restrict-taxonomies.php

    r1277541 r1278514  
    55Author: Sladix 
    66Author URI: https://twitter.com/sladix 
    7 Version: 1.1 
     7Version: 1.2 
    88*/ 
    99 
     
    4444 
    4545            // If the page is the Posts screen, do our thing, otherwise chill 
    46             if ( $post_type == false || $post_type == 'post' || in_array($post_type,$post_type_options['post_types']) ) 
     46            if ( $post_type == false || $post_type == 'post' ||  $post_type == 'page' || in_array($post_type,$post_type_options['post_types']) ) 
    4747                add_action( 'admin_init', array( &$this, 'posts' ) ); 
    4848 
Note: See TracChangeset for help on using the changeset viewer.