[wp-trac] [WordPress Trac] #60832: add_meta_box breaks on plugin sub-pages if add_menu_page has dynamic title

WordPress Trac noreply at wordpress.org
Sun Mar 24 06:31:45 UTC 2024


#60832: add_meta_box breaks on plugin sub-pages if add_menu_page has dynamic title
----------------------------+-----------------------------
 Reporter:  malcure         |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Menus           |    Version:  6.4.3
 Severity:  normal          |   Keywords:  has-patch
  Focuses:  administration  |
----------------------------+-----------------------------
 add_meta_box breaks on plugin sub-pages if add_menu_page has dynamic
 title.

 Poc and fix attached.

 The reason is that if the menu title is dynamic like 'My Plugin <span
 class="menu-counter">' . $count . '</span>'

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


More information about the wp-trac mailing list