Changeset 49926
- Timestamp:
- 01/03/2021 09:55:04 PM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-community-events.php
r49201 r49926 40 40 * 41 41 * @param int $user_id WP user ID. 42 * @param bool|array $user_location Stored location data for the user.43 * false to pass no location;44 * array to pass a location {42 * @param false|array $user_location { 43 * Stored location data for the user. false to pass no location. 44 * 45 45 * @type string $description The name of the location 46 46 * @type string $latitude The latitude in decimal degrees notation, without the degree -
trunk/src/wp-admin/includes/dashboard.php
r49725 r49926 1539 1539 * @since 3.0.0 1540 1540 * 1541 * @return bool|nullTrue if not multisite, user can't upload files, or the space check option is disabled.1541 * @return true|void True if not multisite, user can't upload files, or the space check option is disabled. 1542 1542 */ 1543 1543 function wp_dashboard_quota() { -
trunk/src/wp-admin/includes/deprecated.php
r49599 r49926 129 129 * @param int $level Optional. Number of levels deep to display. Default 0. 130 130 * @param array $categories Optional. Categories to include in the control. Default 0. 131 * @return bool|nullFalse if no categories were found.131 * @return false|void False if no categories were found. 132 132 */ 133 133 function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) { -
trunk/src/wp-admin/includes/image.php
r49021 r49926 1015 1015 * @since 3.1.0 1016 1016 * 1017 * @param string 1017 * @param string|false $image_url Current image URL. 1018 1018 * @param int $attachment_id Attachment ID. 1019 1019 * @param string|int[] $size Requested image size. Can be any registered image size name, or -
trunk/src/wp-admin/includes/translation-install.php
r47929 r49926 30 30 * @since 4.0.0 31 31 * 32 * @param bool|array$result The result object. Default false.33 * @param string $type The type of translations being requested.34 * @param object $args Translation API arguments.32 * @param false|object $result The result object. Default false. 33 * @param string $type The type of translations being requested. 34 * @param object $args Translation API arguments. 35 35 */ 36 36 $res = apply_filters( 'translations_api', false, $type, $args ); -
trunk/src/wp-includes/category-template.php
r49693 r49926 816 816 * 'DESC' (descending), or 'RAND' (random). Default 'ASC'. 817 817 * @type int|bool $filter Whether to enable filtering of the final output 818 * via {@see 'wp_generate_tag_cloud'}. Default 1 |true.818 * via {@see 'wp_generate_tag_cloud'}. Default 1. 819 819 * @type string $topic_count_text Nooped plural text from _n_noop() to supply to 820 820 * tag counts. Default null. -
trunk/src/wp-includes/class-wp-hook.php
r49489 r49926 187 187 /** 188 188 * Checks if a specific action has been registered for this hook. 189 * 190 * When using the $function_to_check argument, this function may return a non-boolean value 191 * that evaluates to false (e.g. 0), so use the === operator for testing the return value. 189 192 * 190 193 * @since 4.7.0 -
trunk/src/wp-includes/class-wp-image-editor-imagick.php
r49546 r49926 292 292 * @param string $filter_name Optional. The Imagick filter to use when resizing. Default 'FILTER_TRIANGLE'. 293 293 * @param bool $strip_meta Optional. Strip all profiles, excluding color profiles, from the image. Default true. 294 * @return bool|WP_Error294 * @return void|WP_Error 295 295 */ 296 296 protected function thumbnail_image( $dst_w, $dst_h, $filter_name = 'FILTER_TRIANGLE', $strip_meta = true ) { -
trunk/src/wp-includes/class-wp-metadata-lazyloader.php
r47153 r49926 71 71 * @param string $object_type Type of object whose meta is to be lazy-loaded. Accepts 'term' or 'comment'. 72 72 * @param array $object_ids Array of object IDs. 73 * @return bool|WP_Error True on success,WP_Error on failure.73 * @return void|WP_Error WP_Error on failure. 74 74 */ 75 75 public function queue_objects( $object_type, $object_ids ) { … … 111 111 * 112 112 * @param string $object_type Object type. Accepts 'comment' or 'term'. 113 * @return bool|WP_Error True on success,WP_Error on failure.113 * @return void|WP_Error WP_Error on failure. 114 114 */ 115 115 public function reset_queue( $object_type ) { -
trunk/src/wp-includes/comment.php
r49215 r49926 2407 2407 * @since 1.5.0 2408 2408 * 2409 * @param int 2410 * @param string |bool$comment_status Current comment status. Possible values include2411 * 'hold', 'approve', 'spam', 'trash', or false.2409 * @param int $comment_id Comment ID. 2410 * @param string $comment_status Current comment status. Possible values include 2411 * 'hold', '0', 'approve', '1, 'spam', and 'trash'. 2412 2412 */ 2413 2413 do_action( 'wp_set_comment_status', $comment->comment_ID, $comment_status ); -
trunk/src/wp-includes/formatting.php
r49858 r49926 5546 5546 * @since 3.6.0 5547 5547 * 5548 * @param string| string[]$value String or array of strings to unslash.5549 * @return string| string[]Unslashed $value5548 * @param string|array $value String or array of strings to unslash. 5549 * @return string|array Unslashed $value 5550 5550 */ 5551 5551 function wp_unslash( $value ) { -
trunk/src/wp-includes/functions.php
r49907 r49926 838 838 * @param string|null $content Post content. If `null`, the `post_content` field from `$post` is used. 839 839 * @param int|WP_Post $post Post ID or post object. 840 * @return null|boolReturns false if post is not found.840 * @return void|false Returns false if post is not found. 841 841 */ 842 842 function do_enclose( $content, $post ) { -
trunk/src/wp-includes/plugin.php
r49196 r49926 134 134 * hook is returned, or false if the function is not attached. When using the 135 135 * $function_to_check argument, this function may return a non-boolean value 136 * that evaluates to false (e.g. ) 0, so use the === operator for testing the136 * that evaluates to false (e.g. 0), so use the === operator for testing the 137 137 * return value. 138 138 */ … … 567 567 * hook is returned, or false if the function is not attached. When using the 568 568 * $function_to_check argument, this function may return a non-boolean value 569 * that evaluates to false (e.g. ) 0, so use the === operator for testing the569 * that evaluates to false (e.g. 0), so use the === operator for testing the 570 570 * return value. 571 571 */ -
trunk/src/wp-includes/post.php
r49905 r49926 6104 6104 * @since 2.1.0 6105 6105 * 6106 * @param array|bool $data Array of meta data for the given attachment, or false 6107 * if the object does not exist. 6108 * @param int $attachment_id Attachment post ID. 6106 * @param array $data Array of meta data for the given attachment. 6107 * @param int $attachment_id Attachment post ID. 6109 6108 */ 6110 6109 return apply_filters( 'wp_get_attachment_metadata', $data, $attachment_id ); -
trunk/src/wp-includes/user.php
r49919 r49926 1538 1538 * 1539 1539 * @param object|WP_User $user User object or database row to be cached 1540 * @return bool|nullReturns false on failure.1540 * @return false|void Returns false on failure. 1541 1541 */ 1542 1542 function update_user_caches( $user ) {
Note: See TracChangeset
for help on using the changeset viewer.