Changeset 47397
- Timestamp:
- 03/01/2020 10:36:38 AM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image-edit.php
r47304 r47397 338 338 * @since 3.5.0 339 339 * 340 * @param mixed$override Value to return instead of saving. Default null.340 * @param bool|null $override Value to return instead of saving. Default null. 341 341 * @param string $filename Name of the file to be saved. 342 342 * @param WP_Image_Editor $image The image editor instance. -
trunk/src/wp-admin/includes/post.php
r47372 r47397 2020 2020 * @since 5.1.0 2021 2021 * 2022 * @param mixed $terms Raw term data from the 'tax_input' field. 2023 * @return array 2022 * @param string $taxonomy The taxonomy name. 2023 * @param array $terms Raw term data from the 'tax_input' field. 2024 * @return int[] Array of sanitized term IDs. 2024 2025 */ 2025 2026 function taxonomy_meta_box_sanitize_cb_checkboxes( $taxonomy, $terms ) { … … 2032 2033 * @since 5.1.0 2033 2034 * 2034 * @param mixed $terms Raw term data from the 'tax_input' field. 2035 * @param string $taxonomy The taxonomy name. 2036 * @param array|string $terms Raw term data from the 'tax_input' field. 2035 2037 * @return array 2036 2038 */ -
trunk/src/wp-admin/link-parse-opml.php
r47122 r47397 28 28 * @global array $feeds 29 29 * 30 * @param mixed$parser XML Parser resource.30 * @param resource $parser XML Parser resource. 31 31 * @param string $tagName XML element name. 32 32 * @param array $attrs XML element attributes. … … 66 66 * @access private 67 67 * 68 * @param mixed$parser XML Parser resource.68 * @param resource $parser XML Parser resource. 69 69 * @param string $tagName XML tag name. 70 70 */ -
trunk/src/wp-includes/blocks.php
r46896 r47397 312 312 * @since 5.3.1 313 313 * 314 * @param mixed$value The attribute value to filter.315 * @param array[]|string $allowed_html An array of allowed HTML elements316 * and attributes, or a context name317 * such as 'post'.318 * @param string[] $allowed_protocols Array of allowed URL protocols.319 * @return arrayThe filtered and sanitized result.314 * @param string[]|string $value The attribute value to filter. 315 * @param array[]|string $allowed_html An array of allowed HTML elements 316 * and attributes, or a context name 317 * such as 'post'. 318 * @param string[] $allowed_protocols Array of allowed URL protocols. 319 * @return string[]|string The filtered and sanitized result. 320 320 */ 321 321 function filter_block_kses_value( $value, $allowed_html, $allowed_protocols = array() ) { -
trunk/src/wp-includes/class-wp-query.php
r47219 r47397 3631 3631 * @since 3.1.0 3632 3632 * 3633 * @param mixed $attachment Attachment ID, title, slug, or array of such.3633 * @param int|string|int[]|string[] $attachment Optional. Attachment ID, title, slug, or array of such to check against. 3634 3634 * @return bool 3635 3635 */ … … 3665 3665 * @since 3.1.0 3666 3666 * 3667 * @param mixed $author Optional. User ID, nickname, nicename, or array of User IDs, nicknames, and nicenames3667 * @param int|string|int[]|string[] $author Optional. User ID, nickname, nicename, or array of such to check against. 3668 3668 * @return bool 3669 3669 */ … … 3700 3700 * @since 3.1.0 3701 3701 * 3702 * @param mixed $category Optional. Category ID, name, slug, or array of Category IDs, names, and slugs.3702 * @param int|string|int[]|string[] $category Optional. Category ID, name, slug, or array of such to check against. 3703 3703 * @return bool 3704 3704 */ … … 3735 3735 * @since 3.1.0 3736 3736 * 3737 * @param mixed $tag Optional. Tag ID, name, slug, or array of Tag IDs, names, and slugs.3737 * @param int|string|int[]|string[] $tag Optional. Tag ID, name, slug, or array of such to check against. 3738 3738 * @return bool 3739 3739 */ … … 3776 3776 * @global array $wp_taxonomies 3777 3777 * 3778 * @param mixed $taxonomy Optional. Taxonomy slug or slugs.3779 * @param mixed $term Optional. Term ID, name, slug or array of Term IDs, names, and slugs.3778 * @param string|string[] $taxonomy Optional. Taxonomy slug or slugs to check against. 3779 * @param int|string|int[]|string[] $term Optional. Term ID, name, slug, or array of such to check against. 3780 3780 * @return bool True for custom taxonomy archive pages, false for built-in taxonomies (category and tag archives). 3781 3781 */ -
trunk/src/wp-includes/class-wp-theme.php
r47219 r47397 1165 1165 * @since 3.4.0 1166 1166 * 1167 * @param mixed $type Optional. Array of extensions to return. Defaults to all files (null). 1168 * @param int $depth Optional. How deep to search for files. Defaults to a flat scan (0 depth). -1 depth is infinite. 1169 * @param bool $search_parent Optional. Whether to return parent files. Defaults to false. 1167 * @param string[]|string $type Optional. Array of extensions to find, string of a single extension, 1168 * or null for all extensions. Default null. 1169 * @param int $depth Optional. How deep to search for files. Defaults to a flat scan (0 depth). 1170 * -1 depth is infinite. 1171 * @param bool $search_parent Optional. Whether to return parent files. Default false. 1170 1172 * @return string[] Array of files, keyed by the path to the file relative to the theme's directory, with the values 1171 1173 * being absolute paths. -
trunk/src/wp-includes/comment.php
r47324 r47397 214 214 * @since 2.3.0 215 215 * 216 * @param mixed$_comment Comment data.216 * @param WP_Comment $_comment Comment data. 217 217 */ 218 218 $_comment = apply_filters( 'get_comment', $_comment ); -
trunk/src/wp-includes/feed.php
r47219 r47397 744 744 * @since 2.8.0 745 745 * 746 * @param mixed $url URL of feed to retrieve. If an array of URLs, the feeds are merged 747 * using SimplePie's multifeed feature. 748 * See also {@link http://simplepie.org/wiki/faq/typical_multifeed_gotchas} 749 * 746 * @param string|string[] $url URL of feed to retrieve. If an array of URLs, the feeds are merged 747 * using SimplePie's multifeed feature. 748 * See also {@link http://simplepie.org/wiki/faq/typical_multifeed_gotchas} 750 749 * @return SimplePie|WP_Error SimplePie object on success or WP_Error object on failure. 751 750 */ … … 778 777 * @since 3.0.0 779 778 * 780 * @param SimplePie $feed SimplePie feed object (passed by reference).781 * @param mixed $url URL of feed to retrieve. If an array of URLs, the feeds are merged.779 * @param SimplePie $feed SimplePie feed object (passed by reference). 780 * @param string|string[] $url URL of feed or array of URLs of feeds to retrieve. 782 781 */ 783 782 do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) ); -
trunk/src/wp-includes/functions.php
r47219 r47397 2646 2646 * @since 3.0.0 2647 2647 * 2648 * @param mixed $upload_bits_error An array of upload bits data, or a non-array errorto return.2648 * @param array|string $upload_bits_error An array of upload bits data, or error message to return. 2649 2649 */ 2650 2650 $upload_bits_error = apply_filters( -
trunk/src/wp-includes/general-template.php
r47374 r47397 824 824 * @since 2.0.5 825 825 * 826 * @param mixed$output The URL returned by bloginfo().827 * @param mixed$show Type of information requested.826 * @param string $output The URL returned by bloginfo(). 827 * @param string $show Type of information requested. 828 828 */ 829 829 $output = apply_filters( 'bloginfo_url', $output, $show ); … … 834 834 * @since 0.71 835 835 * 836 * @param mixed $output The requested non-URL site information.837 * @param mixed$show Type of information requested.836 * @param mixed $output The requested non-URL site information. 837 * @param string $show Type of information requested. 838 838 */ 839 839 $output = apply_filters( 'bloginfo', $output, $show ); -
trunk/src/wp-includes/pluggable.php
r47219 r47397 822 822 * @since 4.3.0 Added the `$token` parameter. 823 823 * 824 * @param int $user_id User ID.825 * @param bool $remember Whether to remember the user.826 * @param mixed $secure Whether the admin cookies should only be sent over HTTPS.827 * Default is the value of is_ssl().828 * @param string $token Optional. User's session token to use for this cookie.824 * @param int $user_id User ID. 825 * @param bool $remember Whether to remember the user. 826 * @param bool|string $secure Whether the auth cookie should only be sent over HTTPS. Default is an empty 827 * string which means the value of `is_ssl()` will be used. 828 * @param string $token Optional. User's session token to use for this cookie. 829 829 */ 830 830 function wp_set_auth_cookie( $user_id, $remember = false, $secure = '', $token = '' ) { -
trunk/src/wp-includes/query.php
r47122 r47397 226 226 * @global WP_Query $wp_query WordPress Query object. 227 227 * 228 * @param mixed $author Optional. User ID, nickname, nicename, or array of User IDs, nicknames, and nicenames228 * @param int|string|int[]|string[] $author Optional. User ID, nickname, nicename, or array of such to check against. 229 229 * @return bool 230 230 */ … … 254 254 * @global WP_Query $wp_query WordPress Query object. 255 255 * 256 * @param mixed $category Optional. Category ID, name, slug, or array of Category IDs, names, and slugs.256 * @param int|string|int[]|string[] $category Optional. Category ID, name, slug, or array of such to check against. 257 257 * @return bool 258 258 */ … … 282 282 * @global WP_Query $wp_query WordPress Query object. 283 283 * 284 * @param mixed $tag Optional. Tag ID, name, slug, or array of Tag IDs, names, and slugs.284 * @param int|string|int[]|string[] $tag Optional. Tag ID, name, slug, or array of such to check against. 285 285 * @return bool 286 286 */ … … 314 314 * @global WP_Query $wp_query WordPress Query object. 315 315 * 316 * @param string| array $taxonomy Optional. Taxonomy slug or slugs.317 * @param int|string| array $term Optional. Term ID, name, slug or array of Term IDs, names, and slugs.316 * @param string|string[] $taxonomy Optional. Taxonomy slug or slugs to check against. 317 * @param int|string|int[]|string[] $term Optional. Term ID, name, slug, or array of such to check against. 318 318 * @return bool True for custom taxonomy archive pages, false for built-in taxonomies (category and tag archives). 319 319 */ -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php
r47391 r47397 343 343 * @since 5.0.0 344 344 * 345 * @param mixed$post_data Associative array containing the post data.345 * @param array $post_data Associative array containing the post data. 346 346 * @return mixed The autosave revision ID or WP_Error. 347 347 */ -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r47299 r47397 1236 1236 * @since 4.7.0 1237 1237 * 1238 * @param mixed$value The username submitted in the request.1238 * @param string $value The username submitted in the request. 1239 1239 * @param WP_REST_Request $request Full details about the request. 1240 1240 * @param string $param The parameter name. … … 1273 1273 * @since 4.7.0 1274 1274 * 1275 * @param mixed$value The password submitted in the request.1275 * @param string $value The password submitted in the request. 1276 1276 * @param WP_REST_Request $request Full details about the request. 1277 1277 * @param string $param The parameter name.
Note: See TracChangeset
for help on using the changeset viewer.