Changeset 58171 for trunk/src/wp-includes/class-wp-theme-json.php
- Timestamp:
- 05/18/2024 11:16:09 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme-json.php
r58123 r58171 1832 1832 * 1833 1833 * @since 5.9.0 1834 * @since 6.6.0 Passing $settings to the callbacks defined in static::PRESETS_METADATA. 1834 1835 * 1835 1836 * @param array $settings Settings to process. … … 1858 1859 ) { 1859 1860 $value_func = $preset_metadata['value_func']; 1860 $value = call_user_func( $value_func, $preset );1861 $value = call_user_func( $value_func, $preset, $settings ); 1861 1862 } else { 1862 1863 // If we don't have a value, then don't add it to the result. … … 2051 2052 * @since 6.1.0 Added `$theme_json`, `$selector`, and `$use_root_padding` parameters. 2052 2053 * @since 6.5.0 Output a `min-height: unset` rule when `aspect-ratio` is set. 2054 * @since 6.6.0 Passing current theme JSON settings to wp_get_typography_font_size_value(). 2053 2055 * 2054 2056 * @param array $styles Styles to process. … … 2118 2120 * Values that already have a clamp() function will not pass the test, 2119 2121 * and therefore the original $value will be returned. 2122 * Pass the current theme_json settings to override any global settings. 2120 2123 */ 2121 $value = wp_get_typography_font_size_value( array( 'size' => $value ) );2124 $value = wp_get_typography_font_size_value( array( 'size' => $value ), $settings ); 2122 2125 } 2123 2126
Note: See TracChangeset
for help on using the changeset viewer.