Changeset 54411
- Timestamp:
- 10/07/2022 11:59:18 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme-json.php
r54409 r54411 684 684 * @param string $to_append Selector to append. 685 685 * @param string $position A position sub-selector should be appended. Default 'right'. 686 * @return string 686 * @return string The new selector. 687 687 */ 688 688 protected static function append_to_selector( $selector, $to_append, $position = 'right' ) { … … 800 800 * @param array $tree Input to process. 801 801 * @param array $schema Schema to adhere to. 802 * @return array Returns the modified $tree.802 * @return array The modified $tree. 803 803 */ 804 804 protected static function remove_keys_not_in_schema( $tree, $schema ) { … … 866 866 * - `presets`: only the classes for the presets. 867 867 * @param array $origins A list of origins to include. By default it includes VALID_ORIGINS. 868 * @return string Stylesheet.868 * @return string The resulting stylesheet. 869 869 */ 870 870 public function get_stylesheet( $types = array( 'variables', 'styles', 'presets' ), $origins = null ) { … … 1012 1012 1013 1013 /** 1014 * Get the CSS layout rules for a particular block from theme.json layout definitions.1014 * Gets the CSS layout rules for a particular block from theme.json layout definitions. 1015 1015 * 1016 1016 * @since 6.1.0 1017 1017 * 1018 1018 * @param array $block_metadata Metadata about the block to get styles for. 1019 *1020 1019 * @return string Layout styles for the block. 1021 1020 */ … … 1287 1286 * @param string $selector CSS selector. 1288 1287 * @param array $declarations List of declarations. 1289 * @return string CSS ruleset.1288 * @return string The resulting CSS ruleset. 1290 1289 */ 1291 1290 protected static function to_ruleset( $selector, $declarations ) { … … 1305 1304 1306 1305 /** 1307 * Given a settings array, itreturns the generated rulesets1306 * Given a settings array, returns the generated rulesets 1308 1307 * for the preset classes. 1309 1308 * … … 1478 1477 1479 1478 /** 1480 * Transform a slug into a CSS Custom Property.1479 * Transforms a slug into a CSS Custom Property. 1481 1480 * 1482 1481 * @since 5.9.0 … … 1491 1490 1492 1491 /** 1493 * Given the block settings, itextracts the CSS Custom Properties1492 * Given the block settings, extracts the CSS Custom Properties 1494 1493 * for the presets and adds them to the $declarations array 1495 1494 * following the format: … … 1505 1504 * @param array $settings Settings to process. 1506 1505 * @param array $origins List of origins to process. 1507 * @return array Returns the modified $declarations.1506 * @return array The modified $declarations. 1508 1507 */ 1509 1508 protected static function compute_preset_vars( $settings, $origins ) { … … 1523 1522 1524 1523 /** 1525 * Given an array of settings, itextracts the CSS Custom Properties1524 * Given an array of settings, extracts the CSS Custom Properties 1526 1525 * for the custom values and adds them to the $declarations 1527 1526 * array following the format: … … 1535 1534 * 1536 1535 * @param array $settings Settings to process. 1537 * @return array Returns the modified $declarations.1536 * @return array The modified $declarations. 1538 1537 */ 1539 1538 protected static function compute_theme_vars( $settings ) { … … 1792 1791 * @param array $theme_json The tree to extract setting nodes from. 1793 1792 * @param array $selectors List of selectors per block. 1794 * @return array 1793 * @return array An array of setting nodes metadata. 1795 1794 */ 1796 1795 protected static function get_setting_nodes( $theme_json, $selectors = array() ) { … … 1846 1845 * @param array $theme_json The tree to extract style nodes from. 1847 1846 * @param array $selectors List of selectors per block. 1848 * @return array 1847 * @return array An array of style nodes metadata. 1849 1848 */ 1850 1849 protected static function get_style_nodes( $theme_json, $selectors = array() ) { … … 2232 2231 2233 2232 /** 2234 * Merge new incoming data.2233 * Merges new incoming data. 2235 2234 * 2236 2235 * @since 5.8.0 … … 2351 2350 2352 2351 /** 2353 * Returns whether a presets should be overridden or not.2352 * Determines whether a presets should be overridden or not. 2354 2353 * 2355 2354 * @since 5.9.0 … … 2439 2438 2440 2439 /** 2441 * Get a `default`'s preset name by a provided slug.2440 * Gets a `default`'s preset name by a provided slug. 2442 2441 * 2443 2442 * @since 5.9.0
Note: See TracChangeset
for help on using the changeset viewer.