mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-08 22:54:36 +00:00
Themes: Account for a numeric theme directory in WP_Theme::__construct().
This ensures that if a theme with a numeric directory name is active, it is correctly identified as such, and that theme support features work as expected. Follow-up to [20029], [49925]. Props lopo, alvastar, winterpsv, hugodevos, ankit-k-gupta, jakariaistauk, mukesh27, spacedmonkey, SergeyBiryukov. Fixes #54645. git-svn-id: https://develop.svn.wordpress.org/trunk@55426 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -242,6 +242,9 @@ final class WP_Theme implements ArrayAccess {
|
||||
}
|
||||
}
|
||||
|
||||
// Handle a numeric theme directory as a string.
|
||||
$theme_dir = (string) $theme_dir;
|
||||
|
||||
$this->theme_root = $theme_root;
|
||||
$this->stylesheet = $theme_dir;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user