Changeset 51221
- Timestamp:
- 06/23/2021 07:04:51 PM (3 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-editor.php
r51213 r51221 11 11 * Returns the list of default categories for block types. 12 12 * 13 * @since 5.8.0 .13 * @since 5.8.0 14 14 * 15 15 * @return array[] Array of categories for block types. -
trunk/src/wp-includes/block-supports/border.php
r50929 r51221 46 46 * @access private 47 47 * 48 * @param WP_Block_ type $block_type Block type.48 * @param WP_Block_Type $block_type Block type. 49 49 * @param array $block_attributes Block attributes. 50 50 * … … 124 124 * @access private 125 125 * 126 * @param WP_Block_ type $block_type Block type.126 * @param WP_Block_Type $block_type Block type. 127 127 * 128 128 * @return boolean -
trunk/src/wp-includes/block-template-utils.php
r51144 r51221 57 57 * @type int $wp_id Post ID of customized template. 58 58 * } 59 * @param string $template_type wp_template. 60 * 61 * @return array Templates. 59 * @param string $template_type Optional. The template type (post type). Default 'wp_template'. 60 * @return WP_Block_Template[] Block template objects. 62 61 */ 63 62 function get_block_templates( $query = array(), $template_type = 'wp_template' ) { -
trunk/src/wp-includes/block-template.php
r51168 r51221 94 94 * @since 5.8.0 95 95 * 96 * Accepts an optional $template_hierarchy argument as a hint.97 *98 96 * @param string $template_type The current template type. 99 * @param string[] $template_hierarchy (optional)The current template hierarchy, ordered by priority.97 * @param string[] $template_hierarchy The current template hierarchy, ordered by priority. 100 98 * @return WP_Block_Template|null template A template object, or null if none could be found. 101 99 */ … … 188 186 * Renders a 'viewport' meta tag. 189 187 * 190 * @access private191 * @since 5.8.0192 *193 188 * This is hooked into {@see 'wp_head'} to decouple its output from the default template canvas. 189 * 190 * @access private 191 * @since 5.8.0 194 192 */ 195 193 function _block_template_viewport_meta_tag() { -
trunk/src/wp-includes/blocks.php
r51167 r51221 215 215 /** 216 216 * Add `style` and `editor_style` for core blocks if missing. 217 *218 * @since 5.8.0219 217 */ 220 218 if ( ! empty( $metadata['name'] ) && 0 === strpos( $metadata['name'], 'core/' ) ) { -
trunk/src/wp-includes/class-wp-image-editor.php
r50951 r51221 327 327 * @since 5.8.0 328 328 * 329 * @param array$output_format {329 * @param string[] $output_format { 330 330 * An array of mime type mappings. Maps a source mime type to a new 331 331 * destination mime type. Default empty array. 332 332 * 333 * @type array $mime_type The source mime type { 334 * @type string $mime_type The new mime type. 335 * } 333 * @type string ...$0 The new mime type. 334 * } 336 335 * @param string $filename Path to the image. 337 336 * @param string $mime_type The source image mime type. -
trunk/src/wp-includes/class-wp-theme-json-resolver.php
r51149 r51221 266 266 * @since 5.8.0 267 267 * 268 * @param array $theme_support_data Theme support data in theme.json format. 268 * @param array $theme_support_data Theme support data in theme.json format. Default empty array. 269 269 * @return WP_Theme_JSON Entity that holds theme data. 270 270 */ … … 319 319 * Whether the current theme has a theme.json file. 320 320 * 321 * @return boolean 321 * @since 5.8.0 322 * 323 * @return bool 322 324 */ 323 325 public static function theme_has_support() { -
trunk/src/wp-includes/class-wp-theme-json.php
r51198 r51221 356 356 * Example: 357 357 * 358 * { 359 * 'core/paragraph': { 360 * 'selector': 'p', 361 * 'elements': { 362 * 'link' => 'link selector', 363 * 'etc' => 'element selector' 358 * { 359 * 'core/paragraph': { 360 * 'selector': 'p', 361 * 'elements': { 362 * 'link' => 'link selector', 363 * 'etc' => 'element selector' 364 * } 365 * }, 366 * 'core/heading': { 367 * 'selector': 'h1', 368 * 'elements': {} 369 * } 370 * 'core/group': { 371 * 'selector': '.wp-block-group', 372 * 'elements': {} 373 * } 364 374 * } 365 * },366 * 'core/heading': {367 * 'selector': 'h1',368 * 'elements': {}369 * }370 * 'core/group': {371 * 'selector': '.wp-block-group',372 * 'elements': {}373 * }374 * }375 375 * 376 376 * @since 5.8.0 … … 518 518 * as classes for each preset value such as: 519 519 * 520 * .has-value-color {521 * color: value;522 * }523 * 524 * .has-value-background-color {525 * background-color: value;526 * }527 * 528 * .has-value-font-size {529 * font-size: value;530 * }531 * 532 * .has-value-gradient-background {533 * background: value;534 * }535 * 536 * p.has-value-gradient-background {537 * background: value;538 * }520 * .has-value-color { 521 * color: value; 522 * } 523 * 524 * .has-value-background-color { 525 * background-color: value; 526 * } 527 * 528 * .has-value-font-size { 529 * font-size: value; 530 * } 531 * 532 * .has-value-gradient-background { 533 * background: value; 534 * } 535 * 536 * p.has-value-gradient-background { 537 * background: value; 538 * } 539 539 * 540 540 * @since 5.8.0 … … 581 581 * For each section this creates a new ruleset such as: 582 582 * 583 * block-selector {584 * --wp--preset--category--slug: value;585 * --wp--custom--variable: value;586 * }583 * block-selector { 584 * --wp--preset--category--slug: value; 585 * --wp--custom--variable: value; 586 * } 587 587 * 588 588 * @since 5.8.0 … … 613 613 * Given a selector and a declaration list, 614 614 * creates the corresponding ruleset. 615 *616 * To help debugging, will add some space617 * if SCRIPT_DEBUG is defined and true.618 615 * 619 616 * @since 5.8.0 … … 732 729 * following the format: 733 730 * 734 * ```php 735 * array( 736 * 'name' => 'property_name', 737 * 'value' => 'property_value, 738 * ) 739 * ``` 731 * array( 732 * 'name' => 'property_name', 733 * 'value' => 'property_value, 734 * ) 740 735 * 741 736 * @since 5.8.0 … … 766 761 * array following the format: 767 762 * 768 * ```php 769 * array( 770 * 'name' => 'property_name', 771 * 'value' => 'property_value, 772 * ) 773 * ``` 763 * array( 764 * 'name' => 'property_name', 765 * 'value' => 'property_value, 766 * ) 774 767 * 775 768 * @since 5.8.0 … … 809 802 * and the token is '--', for this input tree: 810 803 * 811 * {812 * 'some/property': 'value',813 * 'nestedProperty': {814 * 'sub-property': 'value'815 * }816 * }804 * { 805 * 'some/property': 'value', 806 * 'nestedProperty': { 807 * 'sub-property': 'value' 808 * } 809 * } 817 810 * 818 811 * it'll return this output: 819 812 * 820 * {821 * '--wp--some-property': 'value',822 * '--wp--nested-property--sub-property': 'value'823 * }813 * { 814 * '--wp--some-property': 'value', 815 * '--wp--nested-property--sub-property': 'value' 816 * } 824 817 * 825 818 * @since 5.8.0 … … 857 850 * and adds them to the $declarations array following the format: 858 851 * 859 * ```php 860 * array( 861 * 'name' => 'property_name', 862 * 'value' => 'property_value, 863 * ) 864 * ``` 852 * array( 853 * 'name' => 'property_name', 854 * 'value' => 'property_value, 855 * ) 865 856 * 866 857 * @since 5.8.0 … … 968 959 * Builds metadata for the setting nodes, which returns in the form of: 969 960 * 970 * [971 * [972 * 'path' => ['path', 'to', 'some', 'node' ],973 * 'selector' => 'CSS selector for some node'974 * ],975 * [976 * 'path' => [ 'path', 'to', 'other', 'node' ],977 * 'selector' => 'CSS selector for other node'978 * ],979 * ]961 * [ 962 * [ 963 * 'path' => ['path', 'to', 'some', 'node' ], 964 * 'selector' => 'CSS selector for some node' 965 * ], 966 * [ 967 * 'path' => [ 'path', 'to', 'other', 'node' ], 968 * 'selector' => 'CSS selector for other node' 969 * ], 970 * ] 980 971 * 981 972 * @since 5.8.0 … … 1022 1013 * Builds metadata for the style nodes, which returns in the form of: 1023 1014 * 1024 * [1025 * [1026 * 'path' => [ 'path', 'to', 'some', 'node' ],1027 * 'selector' => 'CSS selector for some node'1028 * ],1029 * [1030 * 'path' => ['path', 'to', 'other', 'node' ],1031 * 'selector' => 'CSS selector for other node'1032 * ],1033 * ]1015 * [ 1016 * [ 1017 * 'path' => [ 'path', 'to', 'some', 'node' ], 1018 * 'selector' => 'CSS selector for some node' 1019 * ], 1020 * [ 1021 * 'path' => ['path', 'to', 'other', 'node' ], 1022 * 'selector' => 'CSS selector for other node' 1023 * ], 1024 * ] 1034 1025 * 1035 1026 * @since 5.8.0 -
trunk/src/wp-includes/load.php
r51087 r51221 668 668 669 669 /** 670 * Filters whether to enable loading of the object cache.php drop-in.670 * Filters whether to enable loading of the object-cache.php drop-in. 671 671 * 672 672 * This filter runs before it can be used by plugins. It is designed for non-web -
trunk/src/wp-includes/media.php
r51122 r51221 4357 4357 * @since 5.8.0 4358 4358 * 4359 * @param bool $ value The filtered value, defaults to `false`.4359 * @param bool $infinite Whether the Media Library grid has infinite scrolling. 4360 4360 */ 4361 4361 $infinite_scrolling = apply_filters( 'media_library_infinite_scrolling', false ); -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php
r51003 r51221 43 43 * 44 44 * @since 5.8.0 45 *46 * @return void47 45 */ 48 46 public function register_routes() { -
trunk/src/wp-includes/script-loader.php
r51212 r51221 2604 2604 * @since 5.8.0 2605 2605 * 2606 * @param int $total_inline_limit The file-size threshold, in bytes. Default s to20000.2606 * @param int $total_inline_limit The file-size threshold, in bytes. Default 20000. 2607 2607 */ 2608 2608 $total_inline_limit = apply_filters( 'styles_inline_size_limit', $total_inline_limit ); -
trunk/src/wp-includes/widgets/class-wp-widget-block.php
r51063 r51221 99 99 * @since 5.8.0 100 100 * 101 * @param array$content The HTML content of the current block widget.101 * @param string $content The HTML content of the current block widget. 102 102 * 103 103 * @return string The classname to use in the block widget's container HTML. … … 192 192 * @since 5.8.0 193 193 * 194 * @see WP_Widget_Custom_HTML::render_control_template_scripts() 195 * 194 196 * @param array $instance Current instance. 195 *196 * @see WP_Widget_Custom_HTML::render_control_template_scripts()197 197 */ 198 198 public function form( $instance ) {
Note: See TracChangeset
for help on using the changeset viewer.