[wp-trac] [WordPress Trac] #11539: Add Exlude Page in Admin Panel

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 29 15:50:45 UTC 2009


#11539: Add Exlude Page in Admin Panel
-----------------------------+----------------------------------------------
 Reporter:  GuruXL           |       Owner:                             
     Type:  feature request  |      Status:  new                        
 Priority:  normal           |   Milestone:  3.0                        
Component:  Administration   |     Version:  2.9                        
 Severity:  normal           |    Keywords:  needs-patch, pages, exclude
-----------------------------+----------------------------------------------
Changes (by hakre):

  * keywords:  pages, exclude => needs-patch, pages, exclude


Comment:

 wp_list_pages() is a
 [http://codex.wordpress.org/Template_Tags/wp_list_pages template tag]. I
 mainly see this problem:

  1. If that function gets changed, it must add (not change the current
 behavior) for backcompt reasons.

 Please see the above link for the documented default behaviour.

 I see no problem if the function get's a new parameter that provides the
 behaviour you like. Then you won't need to change your theme everytime you
 add a page.

 {{{ wp_list_pages( $args = array( 'excluded_from_nagivation' => 'excluded'
 ) );}}}

 default would be {{{'included'}}};

 Just an idea. What do you think about that scenario?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11539#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list