Opened 10 years ago
Closed 8 years ago
#28121 closed enhancement (fixed)
Theme Feature Filter problem with Warnings
Reported by: | pavelevap | Owned by: | jorbin |
---|---|---|---|
Milestone: | 4.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Themes | Keywords: | has-patch |
Focuses: | Cc: |
Description
There are several Warnings:
Warning: Illegal offset type in isset or empty in C:\www\wordpress\src\wp-admin\includes\theme.php on line 269 Warning: Illegal offset type in C:\www\wordpress\src\wp-admin\includes\theme.php on line 272
Using latest xampp, Windows, I am not sure if it is not somehow related to .org API?
Related topic: http://wordpress.org/support/topic/after-installation-of-wperror-occurs-in-appearance-themes-feature-filter (and many others).
Attachments (3)
Change History (14)
#1
@
10 years ago
- Milestone changed from Awaiting Review to 3.9.2
- Priority changed from normal to highest omg bbq
- Severity changed from normal to critical
#2
@
10 years ago
To be clear, it's not just the warnings, the feature filter is currently unusable (see the screenshot).
#3
@
10 years ago
This was caused by some changes to the themes directory for I18N reasons. Looking into how to properly revert this change now.
cc @iandunn
#4
@
10 years ago
- Resolution set to fixed
- Status changed from new to closed
API changes reverted. The intended changes will have to be redone in a different way.
The API response should not have been changed at all, so the core patch is not necessary at this time.
#6
@
10 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
This was my fault, sorry about that :|
I attached some unit tests that would have caught the mistake.
#7
@
10 years ago
- Keywords has-patch added
- Milestone changed from WordPress.org to Awaiting Review
- Priority changed from highest omg bbq to normal
- Severity changed from critical to normal
- Type changed from defect (bug) to enhancement
#8
@
9 years ago
- Owner set to jorbin
- Status changed from reopened to assigned
We should commit these tests in the external http group and then close this ticket.
Confirmed.
See the relevant block in
get_theme_featured_list()
: tags/3.9/src/wp-admin/includes/theme.php#L261.$feature_items
used to be a simple array, and now it contains a nested array:28121.patch fixes this, but it's also broken in 3.8.3 and all previous versions, so this looks like an accidental change on the WordPress.org API side that should be reverted.
Moving to 3.9.2 for tracking.