[wp-trac] [WordPress Trac] #47124: Admin menu: restore "Add New" in the Themes section
WordPress Trac
noreply at wordpress.org
Fri Oct 8 12:21:09 UTC 2021
#47124: Admin menu: restore "Add New" in the Themes section
---------------------------------------+---------------------------------
Reporter: afercia | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 3.8
Severity: normal | Resolution:
Keywords: has-screenshots has-patch | Focuses: ui, administration
---------------------------------------+---------------------------------
Changes (by afercia):
* keywords: has-screenshots => has-screenshots has-patch
Comment:
[attachment:"47124.diff"] adds the 'Add New' sub-menu item:
- The new item is added at position 6 `['themes.php'][6]`. 'Customize' and
'Widgets' are moved to position 7 and 8 respectively. 'Menus' is unchanged
at position 10, and so on. These positions can't be overridden by plugins
when using the correct way to add sub-menu items, which is by the means of
`add_submenu_page()`. There's a remote chance that plugins that are using
non-standard ways to add sub-items may be impacted but I'd say WordPress
can't guarantee non-standard code to not be impacted. A quick dev note
would be good anyways.
- Given the Theme install page works only with JavaScript on, the new menu
item uses a CSS class `hide-if-no-js` so it will not be displayed when
JavaScript is disabled.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47124#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list