Changeset 52320 for trunk/src/wp-includes/class-wp-theme-json-resolver.php
- Timestamp:
- 12/04/2021 12:56:29 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme-json-resolver.php
r52280 r52320 57 57 * 58 58 * @since 5.9.0 59 * @var int eger59 * @var int 60 60 */ 61 61 private static $user_custom_post_type_id = null; … … 65 65 * 66 66 * @since 5.8.0 67 * @since 5.9.0 Renamed from $theme_json_i18n67 * @since 5.9.0 Renamed from `$theme_json_i18n`. 68 68 * @var array 69 69 */ … … 151 151 * 152 152 * @since 5.8.0 153 * @since 5.9.0 Theme supports have been inlined and the argument removed. 154 * 153 * @since 5.9.0 Theme supports have been inlined and the `$theme_support_data` argument removed. 154 * 155 * @param array $deprecated Deprecated. Not used. 155 156 * @return WP_Theme_JSON Entity that holds theme data. 156 157 */ 157 158 public static function get_theme_data( $deprecated = array() ) { 158 159 if ( ! empty( $deprecated ) ) { 159 _deprecated_argument( __METHOD__, '5.9 ' );160 _deprecated_argument( __METHOD__, '5.9.0' ); 160 161 } 161 162 if ( null === self::$theme ) { … … 348 349 * 349 350 * @since 5.8.0 350 * @since 5.9.0 Add user data and change the arguments. 351 * @since 5.9.0 Added user data, removed the `$settings` parameter, 352 * added the `$origin` parameter. 351 353 * 352 354 * @param string $origin Optional. To what level should we merge data. 353 * Valid values are 'theme' or 'custom'. 354 * Default is 'custom'. 355 * Valid values are 'theme' or 'custom'. Default 'custom'. 355 356 * @return WP_Theme_JSON 356 357 */ 357 358 public static function get_merged_data( $origin = 'custom' ) { 358 359 if ( is_array( $origin ) ) { 359 _deprecated_argument( __FUNCTION__, '5.9 ' );360 _deprecated_argument( __FUNCTION__, '5.9.0' ); 360 361 } 361 362 … … 397 398 * 398 399 * @since 5.8.0 399 * @since 5.9.0 A lsocheck in the parent theme.400 * @since 5.9.0 Added a check in the parent theme. 400 401 * 401 402 * @return bool … … 418 419 * 419 420 * @since 5.8.0 420 * @since 5.9.0 Adapt to work with child themes.421 * @since 5.9.0 Adapted to work with child themes, added the `$template` argument. 421 422 * 422 423 * @param string $file_name Name of the file. … … 435 436 * 436 437 * @since 5.8.0 437 * @since 5.9.0 Added new variables to reset. 438 * @since 5.9.0 Added the `$user`, `$user_custom_post_type_id`, 439 * and `$i18n_schema` variables to reset. 438 440 */ 439 441 public static function clean_cached_data() {
Note: See TracChangeset
for help on using the changeset viewer.