[wp-trac] [WordPress Trac] #33530: get_taxonomy_labels() conflicts with the admin bar on archive/taxonomy page

WordPress Trac noreply at wordpress.org
Mon Aug 31 06:33:21 UTC 2015


#33530: get_taxonomy_labels() conflicts with the admin bar on archive/taxonomy page
-------------------------------+------------------------------
 Reporter:  drebbits.web       |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Taxonomy           |     Version:  4.3
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  template
-------------------------------+------------------------------

Comment (by drebbits.web):

 Thanks @SergeyBiryukov!

 I'm referring to `$tax` object that are used both in taxonomy.php line 488
 and admin-bar.php line 580.

 To replicate the issue, add `$taxonomy_labels = get_taxonomy_labels(
 get_taxonomy('category') );`in  the archive.php of twentyfifteen theme.
 When you're logged-in, you should see a PHP notice in the admin-bar.php
 and it breaks the edit taxonomy link that is supposed to be in the admin
 bar.

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


More information about the wp-trac mailing list