Changeset 49929
- Timestamp:
- 01/04/2021 05:16:43 PM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-community-events.php
r49927 r49929 307 307 * 308 308 * @param array $location Should contain 'latitude' and 'longitude' indexes. 309 * @return false|string false on failure, or a string on success.309 * @return string|false Transient key on success, false on failure. 310 310 */ 311 311 protected function get_events_transient_key( $location ) { -
trunk/src/wp-admin/includes/deprecated.php
r49927 r49929 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 false|voidFalse if no categories were found.131 * @return void|false 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/file.php
r49927 r49929 131 131 * @param int $levels Optional. Levels of folders to follow, Default 100 (PHP Loop limit). 132 132 * @param string[] $exclusions Optional. List of folders and files to skip. 133 * @return false|string[] False on failure, else array of files.133 * @return string[]|false Array of files on success, false on failure. 134 134 */ 135 135 function list_files( $folder = '', $levels = 100, $exclusions = array() ) { -
trunk/src/wp-admin/includes/image.php
r49927 r49929 681 681 * 682 682 * @param string $file 683 * @return false|array False on failure. Image metadata array on success.683 * @return array|false Image metadata array on success, false on failure. 684 684 */ 685 685 function wp_read_image_metadata( $file ) { -
trunk/src/wp-admin/includes/ms.php
r49927 r49929 312 312 * 313 313 * @param int $id The user ID. 314 * @return false|intThe ID of the refreshed user or false if the user does not exist.314 * @return int|false The ID of the refreshed user or false if the user does not exist. 315 315 */ 316 316 function refresh_user_details( $id ) { -
trunk/src/wp-includes/class-wp-hook.php
r49928 r49929 195 195 * @param string $tag Optional. The name of the filter hook. Default empty. 196 196 * @param callable|false $function_to_check Optional. The callback to check for. Default false. 197 * @return int|boolIf `$function_to_check` is omitted, returns boolean for whether the hook has197 * @return bool|int If `$function_to_check` is omitted, returns boolean for whether the hook has 198 198 * anything registered. When checking a specific function, the priority of that 199 199 * hook is returned, or false if the function is not attached. -
trunk/src/wp-includes/class-wp-recovery-mode-email-service.php
r49927 r49929 290 290 * 291 291 * @param array $extension The extension that caused the error. 292 * @return false|arrayA plugin array {@see get_plugins()} or `false` if no plugin was found.292 * @return array|false A plugin array {@see get_plugins()} or `false` if no plugin was found. 293 293 */ 294 294 private function get_plugin( $extension ) { -
trunk/src/wp-includes/cron.php
r49927 r49929 755 755 * @since 5.1.0 Return value added to indicate success or failure. 756 756 * 757 * @return false|intOn success an integer indicating number of events spawned (0 indicates no757 * @return int|false On success an integer indicating number of events spawned (0 indicates no 758 758 * events needed to be spawned), false if spawning fails for one or more events. 759 759 */ -
trunk/src/wp-includes/functions.php
r49927 r49929 939 939 * @param string $url URL to retrieve HTTP headers from. 940 940 * @param bool $deprecated Not Used. 941 * @return false|string False on failure, headers on success.941 * @return string|false Headers on success, false on failure. 942 942 */ 943 943 function wp_get_http_headers( $url, $deprecated = false ) { … … 6915 6915 * the similarly arbitrary {@see '$context_memory_limit'} filter will be 6916 6916 * invoked. Default 'admin'. 6917 * @return false|int|stringThe limit that was set or false on failure.6917 * @return int|string|false The limit that was set or false on failure. 6918 6918 */ 6919 6919 function wp_raise_memory_limit( $context = 'admin' ) { -
trunk/src/wp-includes/plugin.php
r49928 r49929 133 133 * @param string $tag The name of the filter hook. 134 134 * @param callable|false $function_to_check Optional. The callback to check for. Default false. 135 * @return int|boolIf `$function_to_check` is omitted, returns boolean for whether the hook has135 * @return bool|int If `$function_to_check` is omitted, returns boolean for whether the hook has 136 136 * anything registered. When checking a specific function, the priority of that 137 137 * hook is returned, or false if the function is not attached. … … 566 566 * @param string $tag The name of the action hook. 567 567 * @param callable|false $function_to_check Optional. The callback to check for. Default false. 568 * @return int|boolIf `$function_to_check` is omitted, returns boolean for whether the hook has568 * @return bool|int If `$function_to_check` is omitted, returns boolean for whether the hook has 569 569 * anything registered. When checking a specific function, the priority of that 570 570 * hook is returned, or false if the function is not attached. -
trunk/src/wp-includes/post.php
r49927 r49929 5061 5061 * 5062 5062 * @param int|WP_Post $post_id Post ID or object. 5063 * @return false|string[]Array of URLs already pinged for the given post, false if the post is not found.5063 * @return string[]|false Array of URLs already pinged for the given post, false if the post is not found. 5064 5064 */ 5065 5065 function get_pung( $post_id ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php
r49927 r49929 51 51 * @param WP_REST_Request $request Full details about the request. 52 52 * 53 * @return WP_Error|trueTrue if the request has permission, WP_Error object otherwise.53 * @return true|WP_Error True if the request has permission, WP_Error object otherwise. 54 54 */ 55 55 public function get_items_permissions_check( $request ) { … … 72 72 * @param WP_REST_Request $request Full details about the request. 73 73 * 74 * @return WP_ Error|WP_REST_ResponseResponse object on success, or WP_Error object on failure.74 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 75 75 */ 76 76 public function get_items( $request ) { … … 116 116 * @param WP_REST_Request $request Request object. 117 117 * 118 * @return WP_ Error|WP_REST_ResponseResponse object on success, or WP_Error object on failure.118 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 119 119 */ 120 120 public function prepare_item_for_response( $plugin, $request ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php
r49927 r49929 115 115 * 116 116 * @param WP_REST_Request $request Full details about the request. 117 * @return WP_Error|trueTrue if the request has read access, WP_Error object otherwise.117 * @return true|WP_Error True if the request has read access, WP_Error object otherwise. 118 118 */ 119 119 public function get_items_permissions_check( $request ) { … … 127 127 * 128 128 * @param WP_REST_Request $request Full details about the request. 129 * @return WP_ Error|WP_REST_ResponseResponse object on success, or WP_Error object on failure.129 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 130 130 */ 131 131 public function get_items( $request ) { … … 161 161 * 162 162 * @param WP_REST_Request $request Full details about the request. 163 * @return WP_Error|trueTrue if the request has read access for the item, WP_Error object otherwise.163 * @return true|WP_Error True if the request has read access for the item, WP_Error object otherwise. 164 164 */ 165 165 public function get_item_permissions_check( $request ) { … … 182 182 * @since 5.5.0 183 183 * 184 * @return WP_Error|trueTrue if the block type is visible, WP_Error otherwise.184 * @return true|WP_Error True if the block type is visible, WP_Error otherwise. 185 185 */ 186 186 protected function check_read_permission() { … … 220 220 * 221 221 * @param WP_REST_Request $request Full details about the request. 222 * @return WP_ Error|WP_REST_ResponseResponse object on success, or WP_Error object on failure.222 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 223 223 */ 224 224 public function get_item( $request ) { -
trunk/src/wp-includes/rss.php
r49927 r49929 404 404 * @subpackage MagpieRSS 405 405 * 406 * @param string $url URL to retrieve feed 407 * @return false|MagpieRSS false on failure or MagpieRSS object on success.406 * @param string $url URL to retrieve feed. 407 * @return MagpieRSS|false MagpieRSS object on success, false on failure. 408 408 */ 409 409 function fetch_rss ($url) { -
trunk/src/wp-includes/taxonomy.php
r49927 r49929 744 744 * @param string|array $taxonomies String of taxonomy name or Array of string values of taxonomy names. 745 745 * @param array|string $args Change the order of the object_ids, either ASC or DESC. 746 * @return WP_Error|array If the taxonomy does not exist, then WP_Error will be returned. On success. 747 * the array can be empty meaning that there are no $object_ids found or it will return the $object_ids found. 746 * @return array|WP_Error An array of $object_ids on success, WP_Error if the taxonomy does not exist. 748 747 */ 749 748 function get_objects_in_term( $term_ids, $taxonomies, $args = array() ) { -
trunk/src/wp-includes/user.php
r49927 r49929 1538 1538 * 1539 1539 * @param object|WP_User $user User object or database row to be cached 1540 * @return false|voidReturns false on failure.1540 * @return void|false Returns false on failure. 1541 1541 */ 1542 1542 function update_user_caches( $user ) {
Note: See TracChangeset
for help on using the changeset viewer.