Changeset 51318 for branches/5.8/src/wp-includes/class-wp-theme-json.php
- Timestamp:
- 07/02/2021 07:04:32 PM (3 years ago)
- Location:
- branches/5.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
-
branches/5.8/src/wp-includes/class-wp-theme-json.php
r51314 r51318 259 259 * 260 260 * @param array $theme_json A structure that follows the theme.json schema. 261 * @param string $origin What source of data this object represents. One of core, theme, or user. Default: theme. 261 * @param string $origin Optional. What source of data this object represents. 262 * One of 'core', 'theme', or 'user'. Default 'theme'. 262 263 */ 263 264 public function __construct( $theme_json = array(), $origin = 'theme' ) { … … 422 423 * @since 5.8.0 423 424 * 424 * @param array $tree Input to process.425 * @param array $tree Input to process. 425 426 * @param array $schema Schema to adhere to. 426 *427 427 * @return array Returns the modified $tree. 428 428 */ … … 485 485 * @since 5.8.0 486 486 * 487 * @param string $type Type of stylesheet we want accepts 'all', 'block_styles', and 'css_variables'.488 * 487 * @param string $type Optional. Type of stylesheet we want. Accepts 'all', 488 * 'block_styles', and 'css_variables'. Default 'all'. 489 489 * @return string Stylesheet. 490 490 */ … … 542 542 * @since 5.8.0 543 543 * 544 * @param array $style_nodes Nodes with styles.544 * @param array $style_nodes Nodes with styles. 545 545 * @param array $setting_nodes Nodes with settings. 546 *547 546 * @return string The new stylesheet. 548 547 */ … … 591 590 * 592 591 * @param array $nodes Nodes with settings. 593 *594 592 * @return string The new stylesheet. 595 593 */ … … 618 616 * @since 5.8.0 619 617 * 620 * @param string $selector CSS selector.618 * @param string $selector CSS selector. 621 619 * @param array $declarations List of declarations. 622 *623 620 * @return string CSS ruleset. 624 621 */ … … 647 644 * @since 5.8.0 648 645 * 649 * @param string $selector Original selector.646 * @param string $selector Original selector. 650 647 * @param string $to_append Selector to append. 651 *652 648 * @return string 653 649 */ … … 670 666 * @param array $preset_per_origin Array of presets keyed by origin. 671 667 * @param string $value_key The property of the preset that contains its value. 672 *673 668 * @return array Array of presets where each key is a slug and each value is the preset value. 674 669 */ … … 700 695 * @param array $settings Settings to process. 701 696 * @param string $selector Selector wrapping the classes. 702 *703 697 * @return string The result of processing the presets. 704 698 */ … … 745 739 * 746 740 * @param array $settings Settings to process. 747 *748 741 * @return array Returns the modified $declarations. 749 742 */ … … 777 770 * 778 771 * @param array $settings Settings to process. 779 *780 772 * @return array Returns the modified $declarations. 781 773 */ … … 826 818 * @since 5.8.0 827 819 * 828 * @param array $tree Input tree to process. 829 * @param string $prefix Prefix to prepend to each variable. '' by default. 830 * @param string $token Token to use between levels. '--' by default. 831 * 820 * @param array $tree Input tree to process. 821 * @param string $prefix Optional. Prefix to prepend to each variable. Default empty string. 822 * @param string $token Optional. Token to use between levels. Default '--'. 832 823 * @return array The flattened tree. 833 824 */ … … 866 857 * 867 858 * @param array $styles Styles to process. 868 *869 859 * @return array Returns the modified $declarations. 870 860 */ … … 918 908 * 919 909 * @param array $metadata Description of the style property. 920 * 921 * @return boolean True if properties exists, false otherwise. 910 * @return bool True if properties exists, false otherwise. 922 911 */ 923 912 private static function has_properties( $metadata ) { … … 939 928 * 940 929 * @param array $styles Styles subtree. 941 * @param array $path Which property to process. 942 * 930 * @param array $path Which property to process. 943 931 * @return string Style property value. 944 932 */ … … 983 971 * 984 972 * @param array $theme_json The tree to extract setting nodes from. 985 * @param array $selectors List of selectors per block. 986 * 973 * @param array $selectors List of selectors per block. 987 974 * @return array 988 975 */ … … 1037 1024 * 1038 1025 * @param array $theme_json The tree to extract style nodes from. 1039 * @param array $selectors List of selectors per block. 1040 * 1026 * @param array $selectors List of selectors per block. 1041 1027 * @return array 1042 1028 */
Note: See TracChangeset
for help on using the changeset viewer.