Changeset 55711
- Timestamp:
- 05/03/2023 06:46:44 PM (19 months ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme-json.php
r55349 r55711 975 975 * @since 5.9.0 Removed the `$type` parameter`, added the `$types` and `$origins` parameters. 976 976 * 977 * @param array $types Types of styles to load. Will load all by default. It accepts: 978 * - `variables`: only the CSS Custom Properties for presets & custom ones. 979 * - `styles`: only the styles section in theme.json. 980 * - `presets`: only the classes for the presets. 981 * @param array $origins A list of origins to include. By default it includes VALID_ORIGINS. 982 * @param array $options An array of options for now used for internal purposes only (may change without notice). 983 * The options currently supported are 'scope' that makes sure all style are scoped to a given selector, 984 * and root_selector which overwrites and forces a given selector to be used on the root node. 977 * @param string[] $types Types of styles to load. Will load all by default. It accepts: 978 * - `variables`: only the CSS Custom Properties for presets & custom ones. 979 * - `styles`: only the styles section in theme.json. 980 * - `presets`: only the classes for the presets. 981 * @param string[] $origins A list of origins to include. By default it includes VALID_ORIGINS. 982 * @param array $options An array of options for now used for internal purposes only (may change without notice). 983 * The options currently supported are 'scope' that makes sure all style are scoped to a 984 * given selector, and root_selector which overwrites and forces a given selector to be 985 * used on the root node. 985 986 * @return string The resulting stylesheet. 986 987 */ … … 1097 1098 1098 1099 /** 1099 * Returns the global styles custom css.1100 * Returns the global styles custom CSS. 1100 1101 * 1101 1102 * @since 6.2.0 … … 1411 1412 * @since 5.9.0 1412 1413 * 1413 * @param array $setting_nodes Nodes with settings.1414 * @param array$origins List of origins to process presets from.1414 * @param array $setting_nodes Nodes with settings. 1415 * @param string[] $origins List of origins to process presets from. 1415 1416 * @return string The new stylesheet. 1416 1417 */ … … 1448 1449 * @since 5.9.0 Added the `$origins` parameter. 1449 1450 * 1450 * @param array $nodes Nodes with settings.1451 * @param array$origins List of origins to process.1451 * @param array $nodes Nodes with settings. 1452 * @param string[] $origins List of origins to process. 1452 1453 * @return string The new stylesheet. 1453 1454 */ … … 1506 1507 * @since 5.9.0 Added the `$origins` parameter. 1507 1508 * 1508 * @param array $settings Settings to process.1509 * @param string $selector Selector wrapping the classes.1510 * @param array$origins List of origins to process.1509 * @param array $settings Settings to process. 1510 * @param string $selector Selector wrapping the classes. 1511 * @param string[] $origins List of origins to process. 1511 1512 * @return string The result of processing the presets. 1512 1513 */ … … 1612 1613 * @since 5.9.0 1613 1614 * 1614 * @param array $settings Settings to process.1615 * @param array $preset_metadata One of the PRESETS_METADATA values.1616 * @param array$origins List of origins to process.1615 * @param array $settings Settings to process. 1616 * @param array $preset_metadata One of the PRESETS_METADATA values. 1617 * @param string[] $origins List of origins to process. 1617 1618 * @return array Array of presets where each key is a slug and each value is the preset value. 1618 1619 */ … … 1654 1655 * @since 5.9.0 1655 1656 * 1656 * @param array $settings Settings to process.1657 * @param array $preset_metadata One of the PRESETS_METADATA values.1658 * @param array$origins List of origins to process.1657 * @param array $settings Settings to process. 1658 * @param array $preset_metadata One of the PRESETS_METADATA values. 1659 * @param string[] $origins List of origins to process. 1659 1660 * @return array Array of presets where the key and value are both the slug. 1660 1661 */ … … 1707 1708 * @since 5.9.0 Added the `$origins` parameter. 1708 1709 * 1709 * @param array $settings Settings to process.1710 * @param array$origins List of origins to process.1710 * @param array $settings Settings to process. 1711 * @param string[] $origins List of origins to process. 1711 1712 * @return array The modified $declarations. 1712 1713 */ -
trunk/src/wp-includes/global-styles-and-settings.php
r55192 r55711 22 22 * If empty or unknown, 'all' is used. 23 23 * } 24 * @return array The settingsto retrieve.24 * @return mixed The settings array or individual setting value to retrieve. 25 25 */ 26 26 function wp_get_global_settings( $path = array(), $context = array() ) { … … 105 105 * If empty or unknown, 'all' is used. 106 106 * } 107 * @return array The stylesto retrieve.107 * @return mixed The styles array or individual style value to retrieve. 108 108 */ 109 109 function wp_get_global_styles( $path = array(), $context = array() ) { … … 227 227 228 228 /** 229 * Gets the global styles custom cssfrom theme.json.229 * Gets the global styles custom CSS from theme.json. 230 230 * 231 231 * @since 6.2.0 232 232 * 233 * @return string Stylesheet.233 * @return string The global styles custom CSS. 234 234 */ 235 235 function wp_get_global_styles_custom_css() { -
trunk/src/wp-includes/shortcodes.php
r55119 r55711 309 309 * @global array $shortcode_tags 310 310 * 311 * @param array $m Regular expression match array. 312 * @return string|false Shortcode output on success, false on failure. 311 * @param array $m { 312 * Regular expression match array. 313 * 314 * @type string $0 Entire matched shortcode text. 315 * @type string $1 Optional second opening bracket for escaping shortcodes. 316 * @type string $2 Shortcode name. 317 * @type string $3 Shortcode arguments list. 318 * @type string $4 Optional self closing slash. 319 * @type string $5 Content of a shortcode when it wraps some content. 320 * @type string $6 Optional second closing brocket for escaping shortcodes. 321 * } 322 * @return string Shortcode output. 313 323 */ 314 324 function do_shortcode_tag( $m ) { … … 343 353 * @param false|string $output Short-circuit return value. Either false or the value to replace the shortcode with. 344 354 * @param string $tag Shortcode name. 345 * @param array|string $attr Shortcode attributes array or empty string.355 * @param array|string $attr Shortcode attributes array or the original arguments string if it cannot be parsed. 346 356 * @param array $m Regular expression match array. 347 357 */ … … 362 372 * @param string $output Shortcode output. 363 373 * @param string $tag Shortcode name. 364 * @param array|string $attr Shortcode attributes array or empty string.374 * @param array|string $attr Shortcode attributes array or the original arguments string if it cannot be parsed. 365 375 * @param array $m Regular expression match array. 366 376 */ … … 522 532 * @since 2.5.0 523 533 * 524 * @param string $text 525 * @return array|string List of attribute values. 526 * Returns empty array if '""' === trim( $text ). 527 * Returns empty string if '' === trim( $text ). 528 * All other matches are checked for not empty(). 534 * @param string $text Shortcode arguments list. 535 * @return array|string Array of attribute values keyed by attribute name. 536 * Returns empty array if there are no attributes. 537 * Returns the original arguments string if it cannot be parsed. 529 538 */ 530 539 function shortcode_parse_atts( $text ) { -
trunk/tests/phpunit/tests/functions.php
r55562 r55711 1782 1782 * 1783 1783 * @return array { 1784 * @type array $0...{1784 * @type array ...$0 { 1785 1785 * @type string $0 File path. 1786 1786 * @type array $1 List of allowed files. … … 1928 1928 * 1929 1929 * @return array { 1930 * @type array $0...{1930 * @type array ...$0 { 1931 1931 * @type string $0 The resource path or URL. 1932 1932 * @type bool $1 Expected result.
Note: See TracChangeset
for help on using the changeset viewer.