Opened 20 years ago
Closed 20 years ago
#1153 closed defect (bug) (fixed)
get_page_templates() prints an error when no themes present
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 1.5.1 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
It's not likely in a WordPress install (happens all the time in WPMU - different theme system), but if the $themes variable isn't an array the foreach in wp-admin/admin-functions.php at line 629 fails with an error.
Yes, a WPMU error but I'd appreciate if it could be fixed in WP core.
Change History (2)
Note: See
TracTickets for help on using
tickets.
http://trac.wordpress.org/changeset/2474