[wp-trac] [WordPress Trac] #4004: New filter for page title attribute in wp_list_pages output

WordPress Trac noreply at wordpress.org
Wed May 28 21:47:51 UTC 2014


#4004: New filter for page title attribute in wp_list_pages output
-------------------------------------------------+-------------------------
 Reporter:  Dickie                               |       Owner:  ryan
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Posts, Post Types                    |  Release
 Severity:  normal                               |     Version:  2.1.3
 Keywords:  needs-patch filter wp_list_pages     |  Resolution:
  2nd-opinion                                    |     Focuses:  template
-------------------------------------------------+-------------------------
Changes (by mikkelbreum):

 * keywords:  needs-patch filter wp_list_pages => needs-patch filter
     wp_list_pages 2nd-opinion


Comment:

 Walker_PageDropdown::start_el already has a dedicated 'list_pages' filter
 for modifying only the title text:
 [https://core.trac.wordpress.org/browser/tags/3.9.1/src/wp-includes/post-
 template.php#L1362]

 It seems inconsistent then, that the related Walker_Page::start_el only
 use the 'the_title' filter:
 [https://core.trac.wordpress.org/browser/tags/3.9.1/src/wp-includes/post-
 template.php#L1282]

 Wouldn't it make sense to use the 'list_pages' filter for that one too?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/4004#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list