Changeset 51092 for trunk/src/wp-includes/theme.php
- Timestamp:
- 06/08/2021 10:11:49 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r50395 r51092 900 900 * defined in the theme's `style.css` file. 901 901 * 902 * If the headers are not present in the theme's stylesheet file,903 * `readme.txt` is also checked as a fallback.904 *905 902 * @since 5.5.0 903 * @since 5.8.0 Removed support for using `readme.txt` as a fallback. 906 904 * 907 905 * @param string $stylesheet Directory name for the theme. … … 915 913 'requires_php' => ! empty( $theme->get( 'RequiresPHP' ) ) ? $theme->get( 'RequiresPHP' ) : '', 916 914 ); 917 918 $readme_file = $theme->theme_root . '/' . $stylesheet . '/readme.txt';919 920 if ( file_exists( $readme_file ) ) {921 $readme_headers = get_file_data(922 $readme_file,923 array(924 'requires' => 'Requires at least',925 'requires_php' => 'Requires PHP',926 ),927 'theme'928 );929 930 $requirements = array_merge( $readme_headers, $requirements );931 }932 915 933 916 $compatible_wp = is_wp_version_compatible( $requirements['requires'] );
Note: See TracChangeset
for help on using the changeset viewer.