Make WordPress Core

Opened 8 years ago

Closed 5 weeks ago

#47124 closed feature request (fixed)

Admin menu: restore "Add New" in the Themes section

Reported by: afercia Owned by: joedolson
Priority: normal Milestone: 7.2
Component: Themes Version: 3.8
Severity: normal Keywords: has-screenshots has-patch needs-dev-note commit
Cc: Focuses: ui, accessibility, administration

Description

Many sections in the admin menu have an "Add New" link to navigate directly to the add new Post, Page, Media, Plugin, etc. pages. Except the Themes (Appearance) section.

Personally, not having the ability to directly navigate to the "Add Themes" page has always been a bit annoying for me. Good motivation for some software archeology:

In WordPress 2.9 there was an "Add New Themes" link:

http://cldup.com/JwtyIkudcV.png

It was removed 9 years ago for WordPress 3.0 in [13533], in favor of a "tabbed interface", see #12412 (see also [13583]):

http://cldup.com/v-lQIXw5rD.png

Finally, the tabbed interface was removed in WordPress 3.8 in [26141], with the THX redesign, see #25948. However, the link in the admin menu wasn't restored. I'm pretty sure this was considered at that time, but I couldn't find any related discussion to point to.

Today, the lack of and "Add New" link is inconsistent with other menu sections. For example, I'm not sure why the Plugins section does need an "Add New" link and the Themes section doesn't. Also, this requires some exploration and an additional click each time users want to navigate to the Add Themes page.

Worth also considering that on the multisite admin menu, the "Add New" link does exist. See in the screenshot below: single site on the left and multisite on the right.

http://cldup.com/P5_aKjtGBg.png

If the concern is that the Theme Installer screen requires JavaScript, this can be solved with an admin notice as done in the multisite screen. Also, the admin menu items can take an optional CSS class and hide-if-no-js would work.

Unless I'm missing some important consideration, I'd propose to restore the missing "Add New" link for better usability and consistency.

Related: #47012

Attachments (3)

47124.diff​ (1.6 KB ) - added by afercia 5 years ago.
01 add theme menu item.png​ (613.4 KB ) - added by afercia 5 weeks ago.
01 multisite.png​ (148.9 KB ) - added by afercia 5 weeks ago.
Add Theme menu item on multisite

Download all attachments as: .zip

Change History (25)

#1 @afercia
8 years ago

Related: #47125.

#2 @joyously
8 years ago

I'm in favor of having the Add New link in the menu. I often want it there, but then I do theme review.
Maybe one thing could be fixed with the Add New? The upload for a new theme is on the same page as all the screenshots of the themes from .org. My bandwidth quota takes a big hit downloading all those big screenshots in the time it takes me to choose the file to upload. It's super annoying because I'm on a slow, limited connection, and I don't want all those screenshots every time I want to upload a theme.

#3 @aristath
5 years ago

Does anyone know why we no longer have the "Add New" submenu under Appearance?
It seems a bit inconsistent that it's not there since it's present in themes, users etc 🤔
I believe it would be beneficial to bring it back for themes.

#4 @afercia
5 years ago

  • Keywords has-patch added

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.

#5 @afercia
5 years ago

  • Milestone Awaiting Review → 5.9

Moving the milestone to the next major, for consideration.

#6 in reply to: ↑ description @SergeyBiryukov
5 years ago

Replying to afercia:

Finally, the tabbed interface was removed in WordPress 3.8 in [26141], with the THX redesign, see #25948. However, the link in the admin menu wasn't restored. I'm pretty sure this was considered at that time, but I couldn't find any related discussion to point to.

I'm not so sure that it was considered, could just be an oversight :)

Today, the lack of and "Add New" link is inconsistent with other menu sections. For example, I'm not sure why the Plugins section does need an "Add New" link and the Themes section doesn't.

I think part of the problem is that there is no Themes section as such (on single site), it's called Appearance, which makes it inconsistent with other admin menu sections (as previously mentioned in comment:22:ticket:43697).

To me, an "Appearance → Add New" item sounds a bit weird (Add new what? New appearance?). Maybe it should be "Appearance → Add New Theme", similar to what it was in WordPress 2.9? That would make the item name a bit inconsistent with other "Add New" links, but should hopefully bring some clarity.

Last edited 5 years ago by SergeyBiryukov (previous) (diff)

This ticket was mentioned in ​Slack in #core by chaion07. ​View the logs.


5 years ago

#8 @chaion07
5 years ago

  • Milestone 5.9 → Future Release

Hello @afercia! Thank you for reporting this. This ticket was discussed during a recent ​Bug-scrub session. We've had a productive discussion and based on the feedback received we're moving this to future release. As mentioned in the comment this also needs decision. Thanks!

Props to @audrasjb, @costdev & @kafeg

Version 0, edited 5 years ago by chaion07 (next)

#9 @afercia
5 weeks ago

  • Milestone Future Release → 7.2
  • Owner set to afercia
  • Status new → assigned

To me, an "Appearance → Add New" item sounds a bit weird (Add new what? New appearance?).

Now that most 'add new' menu items have been renamed, this can be reconsidered. In fact, the menu item don't mention 'new' any longer. They are now, for example

Add Post
Add Media File
Add Plugin
Add User

As such, adding a 'Add Theme' wouldn't be inconsistent.
Moving to the 7.2 milestone for consideration.

This ticket was mentioned in ​PR #14135 on ​WordPress/wordpress-develop by ​@afercia.


5 weeks ago
#10

Use of AI Tools

None

#11 @afercia
5 weeks ago

​PR 14135 updates the previous patch.

  • Adds a new menu item 'Add Theme'.
  • Updates the position of the other menu items in the Appearance menu.
  • Sets the theme-install.php page as menu item to be highlighted for theme installs and updates. This matches the pattern for Plugins.
Last edited 5 weeks ago by afercia (previous) (diff)

#12 @afercia
5 weeks ago

  • Focuses accessibility added

A predictable, consistent navigation is an accessibility feature. Marking this ticket as such.

#13 @afercia
5 weeks ago

Note that on Multisite there's already an 'Add Theme' menu item after the 'Installed Themes' one. See screenshot.

@afercia
5 weeks ago

Add Theme menu item on multisite

This ticket was mentioned in ​Slack in #accessibility by joedolson. ​View the logs.


5 weeks ago

#15 @afercia
5 weeks ago

  • Keywords needs-dev-note added

#16 @afercia
5 weeks ago

Changing the numbers related to the menu items position my impact extenders so I think this proposed change will need a dev note.

This ticket was mentioned in ​Slack in #core by audrasjb. ​View the logs.


5 weeks ago

#18 @audrasjb
5 weeks ago

This PR looks good to me @afercia and this changeset indeed brings more consistency between the various menus. I'm in favor of shipping it with 7.2.

#19 @joedolson
5 weeks ago

  • Keywords commit added

​@dhruvang21 commented on ​PR #14135:


5 weeks ago
#20

@afercia tested the PR in WordPress Playground and confirmed that the new “Add Theme” menu item works as expected.

https://github.com/user-attachments/assets/7cfde687-7394-4c23-8226-3fae91fe6d91

#21 @joedolson
5 weeks ago

  • Owner changed from afercia to joedolson
  • Status assigned → accepted

#22 @peterwilsoncc
5 weeks ago

  • Resolution → fixed
  • Status accepted → closed

In 64352:

Themes: Restore Add Theme to appearance sub-menu.

Restores the Appearance > Add Theme menu item within the dashboard. The menu item was removed in r13533 in favour of a tabbed layout that was subsequently removed in r26141.

This makes the appearance menu consistent with the posts, pages, media, plugins and users menus.

Developed in ​https://github.com/WordPress/wordpress-develop/pull/14135.

Props afercia, aristath, audrasjb, chaion07, dhruvang21, joedolson, joyously, sergeybiryukov.
Fixes #47124.

Note: See TracTickets for help on using tickets.