Make WordPress Core

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: donncha's profile donncha Owned by: ryan's profile ryan
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)

#1 @donncha
20 years ago

  • Patch set to No

#2 @ryan
20 years ago

  • fixed_in_version set to 1.5.1
  • Owner changed from anonymous to rboren
  • Resolution changed from 10 to 20
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.