Opened 14 years ago
Closed 14 years ago
#16196 closed defect (bug) (fixed)
"Available themes" is empty/confusing when there are no other themes installed
Reported by: | solarissmoke | Owned by: | |
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | minor | Version: | 3.1 |
Component: | Themes | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
When there are no alternative themes installed, wp-admin/themes.php
just has <h3>Available Themes</h3>
followed by an empty table. I think this can be a bit confusing (and it looks a bit weird as well).
It might be better to say something like "you have no other themes installed at the moment. You can [link to theme-install.php] search for themes here." And to not create an empty table.
Attachments (9)
Change History (18)
@
14 years ago
use display_rows_or_placeholder()
for themes-list-table
and theme-install-list-table
, also fixed some css inconsistencies in theme-install-list-table
#2
@
14 years ago
- Keywords 3.2-early added; dev-feedback removed
- Milestone changed from Awaiting Review to Future Release
3.2 may include a review of the UI screens related to this
#3
follow-up:
↓ 4
@
14 years ago
- Keywords 3.2-early removed
- Milestone changed from Future Release to 3.1
The main thing here is a regression. The code was written and is in the list table no less.
Please see my attached patch (I found this ticket after) for my simple fix, at least.
#4
in reply to:
↑ 3
@
14 years ago
Do we still need to print an empty table at the bottom - or could we move $wp_list_table->display();
to before the elseif
?
#5
follow-up:
↓ 6
@
14 years ago
We would need to check to make sure it's not a search I think -- see the start of that. I didn't dig too deep into the logic, I just remember doing all the strings in no_items() and was very surprised to not see them echo'd.
I don't even want to check what happens when a search returns no results. It looks like no_items() gets called, and no_items() currently doesn't take into account searching and the like. :-(
#6
in reply to:
↑ 5
@
14 years ago
Replying to nacin:
This patch sorts out those issues and I think it is consistent with the generic behaviour of WP_List_Table. The output of no_items()
looks a bit funky IMO, but that is a styling issue which garyc40 has provided a suggestion for.
Don't show empty "available themes" table, and link to theme-install.php