Opened 14 years ago
Closed 13 years ago
#15306 closed defect (bug) (fixed)
Theme names that consist only of numbers won't be listed on themes page
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.4 | Priority: | low |
Severity: | normal | Version: | 2.9 |
Component: | Themes | Keywords: | needs-patch |
Focuses: | Cc: |
Description
Name a theme 1234 and then go to the manage themes page. There will be an empty space:
http://grab.by/7cTI
In trunk there is $theme_names = array_keys( $themes ); in class-wp-themes-list-table.php. After array_keys() the name is int(0), before it's string(4) "1234".
I could reproduce it in 2.9 and 3.0 too.
Attachments (4)
Change History (18)
#2
@
14 years ago
- Cc admin@… added
Attached patch changes preserve_keys parameter to be true in the array_splice call.
#5
follow-up:
↓ 7
@
14 years ago
i can not locate the file to patch "class-wp-themes-list-table.php" in a 3.0.x installation, but error still exisits.
#6
@
13 years ago
- Keywords needs-patch added; has-patch removed
- Milestone changed from Future Release to 3.4
- Owner set to nacin
- Status changed from new to reviewing
#7
in reply to:
↑ 5
@
13 years ago
- Keywords has-patch added; needs-patch removed
Replying to r19:
i can not locate the file to patch "class-wp-themes-list-table.php" in a 3.0.x installation, but error still exisits.
15306.patch was for 3.1. Still seems to apply correctly and fixes the issue. Refreshed just in case.
#9
@
13 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Multisite has some quirks here. Looking into it.
#10
@
13 years ago
15306.ms.patch does preserve the keys in get_allowed_themes().
See http://www.php.net/manual/de/function.array-merge.php#100240
#12
@
13 years ago
class-wp-ms-themes-list-table.php
has a similar array_slice()
call. While it doesn't seem to make any difference there, we should probably preserve the keys as well for consistency.
Not a regression, so moving to future now.