[wp-trac] [WordPress Trac] #54026: One admin menu item from different plugins

WordPress Trac noreply at wordpress.org
Fri Sep 3 11:22:03 UTC 2021


#54026: One admin menu item from different plugins
----------------------------+------------------------------
 Reporter:  kimjo           |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  5.8
 Severity:  normal          |  Resolution:
 Keywords:  has-dev-note    |     Focuses:  administration
----------------------------+------------------------------
Changes (by kimjo):

 * keywords:  close => has-dev-note
 * version:   => 5.8


Comment:

 Replying to [comment:4 karpstrucking]:
 > @kimjo you can wrap your `add_menu_page` function in an if-statement
 that checks if the menu item was already added by another plugin:
 >

 I am currently using a session flag, but the result is similar to your
 way.

 Nevertheless i think, this should be automatically solved by the WP core
 and not by hand from every developer.

 I our own projects (framework and app development for prod usage) those
 requests are quite typical for framework updates and enhancements.

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


More information about the wp-trac mailing list