Changeset 51298
- Timestamp:
- 07/01/2021 09:01:17 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-editor.php
r51240 r51298 245 245 * @since 5.8.0 246 246 * 247 * @param array$widgets An array of excluded widget-type IDs.247 * @param string[] $widgets An array of excluded widget-type IDs. 248 248 */ 249 249 $editor_settings['widgetTypesToHideFromLegacyWidgetBlock'] = apply_filters( … … 395 395 * @global WP_Post $post Global post object. 396 396 * 397 * @param array$preload_paths List of paths to preload.397 * @param string[] $preload_paths List of paths to preload. 398 398 * @param WP_Block_Editor_Context $block_editor_context The current block editor context. 399 399 * -
trunk/src/wp-includes/block-supports/border.php
r51221 r51298 126 126 * @param WP_Block_Type $block_type Block type. 127 127 * 128 * @return bool ean128 * @return bool 129 129 */ 130 130 function wp_skip_border_serialization( $block_type ) { … … 150 150 * @param string $feature Name of the feature to check support for. 151 151 * @param mixed $default Fallback value for feature support, defaults to false. 152 * 153 * @return boolean Whether or not the feature is supported. 152 * @return bool Whether the feature is supported. 154 153 */ 155 154 function wp_has_border_feature_support( $block_type, $feature, $default = false ) { -
trunk/src/wp-includes/block-supports/spacing.php
r50945 r51298 76 76 * @param WP_Block_Type $block_type Block type to check for support. 77 77 * @param string $feature Name of the feature to check support for. 78 * @param mixed $default Fallback value for feature support, defaults to false. 79 * 80 * @return boolean Whether or not the feature is supported. 78 * @param mixed $default Fallback value for feature support. Default false. 79 * @return bool Whether the feature is supported. 81 80 */ 82 81 function wp_has_spacing_feature_support( $block_type, $feature, $default = false ) { -
trunk/src/wp-includes/block-template.php
r51221 r51298 15 15 * @global string $_wp_current_template_content 16 16 * 17 * @param string $template Path to the template. See locate_template().18 * @param string $type Sanitized filename without extension.19 * @param array$templates A list of template candidates, in descending order of priority.17 * @param string $template Path to the template. See locate_template(). 18 * @param string $type Sanitized filename without extension. 19 * @param string[] $templates A list of template candidates, in descending order of priority. 20 20 * @return string The path to the Full Site Editing template canvas file, or the fallback PHP template. 21 21 */ -
trunk/src/wp-includes/blocks.php
r51288 r51298 961 961 * @param WP_Block_Type $block_type Block type to check for support. 962 962 * @param string $feature Name of the feature to check support for. 963 * @param mixed $default Fallback value for feature support, defaults to false. 964 * 965 * @return boolean Whether or not the feature is supported. 963 * @param mixed $default Optional. Fallback value for feature support. Default false. 964 * @return bool Whether the feature is supported. 966 965 */ 967 966 function block_has_support( $block_type, $feature, $default = false ) { -
trunk/src/wp-includes/class-wp-block.php
r50123 r51298 62 62 * 63 63 * @since 5.5.0 64 * @var WP_Block []64 * @var WP_Block_List 65 65 */ 66 66 public $inner_blocks = array(); -
trunk/src/wp-includes/class-wp-comment-query.php
r49946 r51298 215 215 * affiliated comments for. Pass 'any' to match any value. 216 216 * Default empty. 217 * @type string 217 * @type string|array $post_type Post type or array of post types to retrieve affiliated 218 218 * comments for. Pass 'any' to match any value. Default empty. 219 219 * @type string $post_name Post name to retrieve affiliated comments for. -
trunk/src/wp-includes/class-wp-http-streams.php
r49597 r51298 366 366 * @since 3.7.0 367 367 * 368 * @param stream$stream The PHP Stream which the SSL request is being made over369 * @param string $hostThe hostname being requested368 * @param resource $stream The PHP Stream which the SSL request is being made over 369 * @param string $host The hostname being requested 370 370 * @return bool If the cerficiate presented in $stream is valid for $host 371 371 */ -
trunk/src/wp-includes/class-wp-image-editor-gd.php
r50810 r51298 534 534 * @since 3.5.0 535 535 * 536 * @param string |stream$filename537 * @param callable 538 * @param array 536 * @param string $filename 537 * @param callable $function 538 * @param array $arguments 539 539 * @return bool 540 540 */ -
trunk/src/wp-includes/class-wp-image-editor-imagick.php
r50821 r51298 902 902 * @since 5.6.0 903 903 * 904 * @return true|WP_ error904 * @return true|WP_Error 905 905 */ 906 906 protected function pdf_load_source() { -
trunk/src/wp-includes/class-wp-image-editor.php
r51221 r51298 506 506 * @since 3.5.0 507 507 * 508 * @param string |stream$filename509 * @param callable 510 * @param array 508 * @param string $filename 509 * @param callable $function 510 * @param array $arguments 511 511 * @return bool 512 512 */ -
trunk/src/wp-includes/class-wp-term-query.php
r50614 r51298 167 167 * Default empty. 168 168 * @type int $child_of Term ID to retrieve child terms of. If multiple taxonomies 169 * are passed, $child_ofis ignored. Default 0.170 * @type int |string$parent Parent term ID to retrieve direct-child terms of.169 * are passed, `$child_of` is ignored. Default 0. 170 * @type int $parent Parent term ID to retrieve direct-child terms of. 171 171 * Default empty. 172 172 * @type bool $childless True to limit results to terms that have no children. -
trunk/src/wp-includes/class-wp-theme-json.php
r51292 r51298 45 45 * 46 46 * @since 5.8.0 47 * @var array47 * @var string[] 48 48 */ 49 49 const VALID_ORIGINS = array( … … 167 167 /** 168 168 * @since 5.8.0 169 * @var array169 * @var string[] 170 170 */ 171 171 const ALLOWED_TOP_LEVEL_KEYS = array( … … 235 235 /** 236 236 * @since 5.8.0 237 * @var array237 * @var string[] 238 238 */ 239 239 const ELEMENTS = array( -
trunk/src/wp-includes/customize/class-wp-customize-background-image-setting.php
r35385 r51298 21 21 * @since 3.4.0 22 22 * 23 * @param $value23 * @param mixed $value 24 24 */ 25 25 public function update( $value ) { -
trunk/src/wp-includes/customize/class-wp-customize-header-image-setting.php
r47198 r51298 25 25 * @global Custom_Image_Header $custom_image_header 26 26 * 27 * @param $value27 * @param mixed $value 28 28 */ 29 29 public function update( $value ) { -
trunk/src/wp-includes/embed.php
r50556 r51298 723 723 * @since 4.4.0 724 724 * 725 * @param bool 726 * @param WP_HTTP_Response Interface $result Result to send to the client. Usually a WP_REST_Response.727 * @param WP_REST_Request 728 * @param WP_REST_Server 725 * @param bool $served Whether the request has already been served. 726 * @param WP_HTTP_Response $result Result to send to the client. Usually a `WP_REST_Response`. 727 * @param WP_REST_Request $request Request used to generate the response. 728 * @param WP_REST_Server $server Server instance. 729 729 * @return true 730 730 */ -
trunk/src/wp-includes/general-template.php
r51048 r51298 1291 1291 * @param bool $display Optional. Whether to display or retrieve title. Default true. 1292 1292 * @param string $seplocation Optional. Location of the separator ('left' or 'right'). 1293 * @return string| null String on retrieve, null when displaying.1293 * @return string|void String when `$display` is true, nothing otherwise. 1294 1294 */ 1295 1295 function wp_title( $sep = '»', $display = true, $seplocation = '' ) { -
trunk/src/wp-includes/l10n.php
r49963 r51298 402 402 * @param string $domain Optional. Text domain. Unique identifier for retrieving translated strings. 403 403 * Default 'default'. 404 * @return string Translated context string without pipe.405 404 */ 406 405 function _ex( $text, $context, $domain = 'default' ) { -
trunk/src/wp-includes/post.php
r51018 r51298 1234 1234 * from the array needs to match; 'and' means all elements must match. 1235 1235 * Default 'and'. 1236 * @return arrayA list of post status names or objects.1236 * @return string[]|stdClass[] A list of post status names or objects. 1237 1237 */ 1238 1238 function get_post_stati( $args = array(), $output = 'names', $operator = 'and' ) { … … 1428 1428 * 'dashicons-chart-pie'. Pass 'none' to leave div.wp-menu-image empty 1429 1429 * so an icon can be added via CSS. Defaults to use the posts icon. 1430 * @type string 1430 * @type string|array $capability_type The string to use to build the read, edit, and delete capabilities. 1431 1431 * May be passed as an array to allow for alternative plurals when using 1432 1432 * this argument as a base to construct the capabilities, e.g. … … 3795 3795 * @type string $post_date_gmt The date of the post in the GMT timezone. Default is 3796 3796 * the value of `$post_date`. 3797 * @type mixed$post_content The post content. Default empty.3797 * @type string $post_content The post content. Default empty. 3798 3798 * @type string $post_content_filtered The filtered post content. Default empty. 3799 3799 * @type string $post_title The post title. Default empty. -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php
r51000 r51298 38 38 * 39 39 * @since 5.0.0 40 * @var WP_REST_ Controller40 * @var WP_REST_Revisions_Controller 41 41 */ 42 42 private $revisions_controller; -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php
r51289 r51298 477 477 * @since 5.8.0 478 478 * 479 * @return arrayList of link relations.479 * @return string[] List of link relations. 480 480 */ 481 481 protected function get_available_actions() { -
trunk/src/wp-includes/user.php
r51129 r51298 2443 2443 * @since 3.7.0 2444 2444 * 2445 * @param WP_User $user Optional. WP_User object.2445 * @param WP_User|null $user Optional. WP_User object. 2446 2446 * @return string[] Array of contact method labels keyed by contact method. 2447 2447 */ … … 2461 2461 * @since 2.9.0 2462 2462 * 2463 * @param string[] $methods Array of contact method labels keyed by contact method.2464 * @param WP_User $user WP_User object.2463 * @param string[] $methods Array of contact method labels keyed by contact method. 2464 * @param WP_User|null $user WP_User object or null if none was provided. 2465 2465 */ 2466 2466 return apply_filters( 'user_contactmethods', $methods, $user ); … … 2475 2475 * @access private 2476 2476 * 2477 * @param WP_User $user Optional. WP_User object. Default null.2477 * @param WP_User|null $user Optional. WP_User object. Default null. 2478 2478 * @return string[] Array of contact method labels keyed by contact method. 2479 2479 */ -
trunk/src/wp-includes/widgets.php
r51219 r51298 1829 1829 * @since 5.8.0 1830 1830 * 1831 * @return bool ean Whether or notto use the block editor to manage widgets.1831 * @return bool Whether to use the block editor to manage widgets. 1832 1832 */ 1833 1833 function wp_use_widgets_block_editor() { … … 1837 1837 * @since 5.8.0 1838 1838 * 1839 * @param bool ean $use_widgets_block_editor Whether or notto use the block editor to manage widgets.1839 * @param bool $use_widgets_block_editor Whether to use the block editor to manage widgets. 1840 1840 */ 1841 1841 return apply_filters( -
trunk/src/wp-includes/wp-db.php
r49942 r51298 1008 1008 * @param int $blog_id Optional. The blog_id to prefix. Used only when prefix is requested. 1009 1009 * Defaults to wpdb::$blogid. 1010 * @return arrayTable names. When a prefix is requested, the key is the unprefixed table name.1010 * @return string[] Table names. When a prefix is requested, the key is the unprefixed table name. 1011 1011 */ 1012 1012 public function tables( $scope = 'all', $prefix = true, $blog_id = 0 ) { -
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-term.php
r46986 r51298 83 83 * @param null $generation_definitions The default values. 84 84 * 85 * @return WP_Term|WP_Error|null WP_Term on success. WP_ error if taxonomy does not exist. Null for miscellaneous failure.85 * @return WP_Term|WP_Error|null WP_Term on success. WP_Error if taxonomy does not exist. Null for miscellaneous failure. 86 86 */ 87 87 public function create_and_get( $args = array(), $generation_definitions = null ) { … … 101 101 * @param int $term_id ID of the term to retrieve. 102 102 * 103 * @return WP_Term|WP_Error|null WP_Term on success. WP_ error if taxonomy does not exist. Null for miscellaneous failure.103 * @return WP_Term|WP_Error|null WP_Term on success. WP_Error if taxonomy does not exist. Null for miscellaneous failure. 104 104 */ 105 105 public function get_object_by_id( $term_id ) {
Note: See TracChangeset
for help on using the changeset viewer.