[wp-trac] [WordPress Trac] #40683: Add a Plugins link to admin bar menu

WordPress Trac noreply at wordpress.org
Sun Nov 12 21:35:13 UTC 2023


#40683: Add a Plugins link to admin bar menu
-------------------------------------+------------------------
 Reporter:  colomet                  |       Owner:  joedolson
     Type:  enhancement              |      Status:  accepted
 Priority:  normal                   |   Milestone:  6.5
Component:  Toolbar                  |     Version:  4.7.4
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  ui
-------------------------------------+------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:11 joedolson]:
 > I would put Plugins before 'Themes', to match the order in the admin
 menu.

 Unless I'm missing something, Plugins comes after Themes, both in the
 regular admin menu and in the Network Admin menu. So placing the link
 after the Appearance group would be my preference here.

 Placing it in the `wp_admin_bar_appearance_menu()` function, as in
 [attachment:"40683.end-of-appearance-group.patch"], doesn't feel right to
 me though, as plugins are not in the Appearance group. After the
 `wp_admin_bar_appearance_menu()` call in `wp_admin_bar_site_menu()` seems
 like a better place.

 Replying to [comment:10 sabernhardt]:
 > Both patch options use the ID of 'ab-plugins' (similar to ab-icon and
 ab-item) to avoid any confusion with links added by plugins. A
 [https://wpdirectory.net/search/01F905H3SSWZ2K3BGK6PQT9ZG9 directory
 search] found some nodes with a 'plugins' ID. Of course, this one could
 have a better name, too.

 There appear to be false positives in those search results. Most of the
 instances are unrelated to the admin bar, and most of the related ones use
 it for the same purpose (linking to the Plugins screen). I think we can
 just use `'plugins'` here, for consistency with the existing naming
 scheme: `'themes'`, `'widgets'`, `'menus'`, etc. Plugins that are still
 supported should adapt to the change.

 [attachment:"40683.3.diff"] is a refresh with the above in mind.

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


More information about the wp-trac mailing list