WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#28263 closed defect (bug) (duplicate)

get_raw_theme_root() fails to recognize a singular custom $wp_theme_directories

Reported by: danielbachhuber Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Themes Keywords: needs-patch needs-unit-tests
Focuses: Cc:

Description

When no WP_CONTENT_DIR . '/themes directory exists, get_raw_theme_root() fails to recognize a singular custom $wp_theme_directories because of this assumption:

if ( count($wp_theme_directories) <= 1 )
	return '/themes';

Change History (1)

#1 @SergeyBiryukov
4 years ago

  • Milestone Future Release deleted
  • Resolution set to duplicate
  • Status changed from new to closed

#24026 has more details.

Note: See TracTickets for help on using tickets.