[wp-trac] [WordPress Trac] #32376: Urls are encoded incorrectly in WP_Posts_List_Table::get_views()

WordPress Trac noreply at wordpress.org
Wed May 13 17:00:03 UTC 2015


#32376: Urls are encoded incorrectly in WP_Posts_List_Table::get_views()
-------------------------------+-----------------------------
 Reporter:  BdN3504            |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  4.2.2
 Severity:  normal             |   Keywords:
  Focuses:  administration     |
-------------------------------+-----------------------------
 I stumbled upon this bug when I tried to fix something else: The current
 css class is not added to the 'All' link in the views. To solve this
 issue, I added the css class with DOMDocument. But when I called the
 method to read the html of
 {{{
 $views['all']
 }}}

 like so:
 {{{
 DOMDocument::loadHTML($views['all'])
 }}}
 , I received a parsing error. The parsing error is thrown because the
 ampersand in WP_Posts_List_Table::get_views() on line 185 is not encoded.
 I will refrain from using my DOMDocument method of fixing the other bug, I
 will file another bug instead, because I now know why the 'current' css
 class is not added to the 'All' view.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32376>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list