Make WordPress Core


Ignore:
Timestamp:
02/27/2023 03:32:22 PM (16 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-theme.php

    r55332 r55426  
    242242            }
    243243        }
     244
     245        // Handle a numeric theme directory as a string.
     246        $theme_dir = (string) $theme_dir;
    244247
    245248        $this->theme_root = $theme_root;
Note: See TracChangeset for help on using the changeset viewer.