Plugin Directory

Changeset 1233579


Ignore:
Timestamp:
08/29/2015 08:03:28 AM (11 years ago)
Author:
iamntz
Message:

Preventing admin selector on post types that aren't hierarchical

Location:
page-siblings/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • page-siblings/trunk/page-siblings.php

    r1031717 r1233579  
    55Description: Add a metabox with all page edit (and any other hierarchal post types) that display an edit link to its siblings.
    66Author: Ionuț Staicu
    7 Version: 1.0.4
     7Version: 1.0.5
    88Author URI: http://iamntz.com
    99*/
     
    3737
    3838  public function add_column_filters(){
     39    if( !isset( $_GET['post_type'] ) || !is_post_type_hierarchical( $_GET['post_type'] ) ) {
     40      return;
     41    }
     42
    3943    $current_setting = isset( $_GET['display_only_parents'] ) ? (int) $_GET['display_only_parents'] : 0;
    4044    ?>
  • page-siblings/trunk/readme.txt

    r1112094 r1233579  
    33Tags: page administration, utils, custom post type
    44Requires at least: 3.0
    5 Tested up to: 4.3
     5Tested up to: 4.4
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1111== Description ==
    1212
    13 Ever had to manage a WP install with many pages and subpages? This plugin does nothing more than adding
    14 a metabox to every post type that is hierarchical (that is pages and any other custom post type!) with
    15 a list of all page siblings, starting with the parent, so you can have:
     13Ever had to manage a WP install with many pages and subpages? This plugin does nothing more than adding a metabox to every post type that is hierarchical (that is pages and any other custom post type!) with a list of all page siblings, starting with the parent, so you can have:
    1614
    1715`
     
    2220|— Our Company
    2321`
     22
     23Bonus: when you're listing posts on admin pages, you can also choose  to display only parents.
    2424
    2525== Installation ==
     
    4848= 1.0.4 =
    4949* added correct sorting for pages (thanks Jakob for pointing this)
     50
     51= 1.0.5 =
     52* We shouldn't display filtering option on post types that aren't hierarchical!
Note: See TracChangeset for help on using the changeset viewer.