[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:37:59 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        |  Resolution:
 Keywords:  has-patch     |     Focuses:  administration
--------------------------+------------------------------

Comment (by malcure):

 The reason is that if the menu title is dynamic like 'My Plugin <span
 class="menu-counter">' . $count . '</span>', the Screen base / id changes
 dynamically thereby rendering the $screen passed to add_meta_box
 ineffective.

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


More information about the wp-trac mailing list