Changeset 46696
- Timestamp:
- 11/11/2019 02:41:15 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-plugin-upgrader.php
r45932 r46696 451 451 * @param string $remote_destination 452 452 * @param array $plugin 453 * @return WP_Error|bool453 * @return bool|WP_Error 454 454 */ 455 455 public function delete_old_plugin( $removed, $local_destination, $remote_destination, $plugin ) { -
trunk/src/wp-admin/includes/class-wp-upgrader.php
r46644 r46696 77 77 * @since 2.8.0 78 78 * 79 * @var WP_Error|array$result {79 * @var array|WP_Error $result { 80 80 * @type string $source The full path to the source the files were installed from. 81 81 * @type string $source_files List of all the files in the source directory. -
trunk/src/wp-admin/includes/file.php
r46597 r46696 2087 2087 * @param array $credentials Credentials to connect with. 2088 2088 * @param string $type Chosen filesystem method. 2089 * @param WP_Error|bool$error Error object or status.2089 * @param bool|WP_Error $error Error object or status. 2090 2090 * @param string $context Full path to the directory that is tested for being writable. 2091 2091 */ -
trunk/src/wp-admin/includes/plugin.php
r46695 r46696 614 614 * or just the current site. Multisite only. Default false. 615 615 * @param bool $silent Optional. Whether to prevent calling activation hooks. Default false. 616 * @return WP_Error|nullWP_Error on invalid file or null on success.616 * @return null|WP_Error WP_Error on invalid file or null on success. 617 617 */ 618 618 function activate_plugin( $plugin, $redirect = '', $network_wide = false, $silent = false ) { … … 1072 1072 * 1073 1073 * @param string $plugin Path to the plugin file relative to the plugins directory. 1074 * @return WP_Error|int0 on success, WP_Error on failure.1074 * @return int|WP_Error 0 on success, WP_Error on failure. 1075 1075 */ 1076 1076 function validate_plugin( $plugin ) { -
trunk/src/wp-admin/includes/update-core.php
r46596 r46696 881 881 * @param string $from New release unzipped path. 882 882 * @param string $to Path to old WordPress installation. 883 * @return WP_Error|nullWP_Error on failure, null on success.883 * @return null|WP_Error WP_Error on failure, null on success. 884 884 */ 885 885 function update_core( $from, $to ) { … … 1315 1315 * @param string $to Destination directory. 1316 1316 * @param string[] $skip_list Array of files/folders to skip copying. 1317 * @return WP_Error|trueWP_Error on failure, true on success.1317 * @return true|WP_Error WP_Error on failure, true on success. 1318 1318 */ 1319 1319 function _copy_dir( $from, $to, $skip_list = array() ) { -
trunk/src/wp-includes/class-wp-customize-nav-menus.php
r46330 r46696 136 136 * @param string $object Optional. Accepts any registered taxonomy or post type name. Default is 'page'. 137 137 * @param int $page Optional. The page number used to generate the query offset. Default is '0'. 138 * @return WP_Error|array Returns either a WP_Error object or an array of menu items.138 * @return array|WP_Error An array of menu items on success, a WP_Error object on failure. 139 139 */ 140 140 public function load_available_items_query( $type = 'post_type', $object = 'page', $page = 0 ) { -
trunk/src/wp-includes/class-wp-customize-widgets.php
r46644 r46696 622 622 * 623 623 * @param string $setting_id Widget setting ID. 624 * @return WP_Error|arrayArray containing a widget's id_base and number components,624 * @return array|WP_Error Array containing a widget's id_base and number components, 625 625 * or a WP_Error object. 626 626 */ … … 1393 1393 * 1394 1394 * @param string $widget_id Widget ID. 1395 * @return WP_Error|arrayArray containing the updated widget information.1395 * @return array|WP_Error Array containing the updated widget information. 1396 1396 * A WP_Error object, otherwise. 1397 1397 */ -
trunk/src/wp-includes/class-wp-image-editor-gd.php
r46594 r46696 253 253 * @type bool $crop Whether to crop the image to exact dimensions. 254 254 * } 255 * @return WP_Error|array WP_Error on error, or the image data array for inclusion in the `sizes` array in the image meta. 255 * @return array|WP_Error The image data array for inclusion in the `sizes` array in the image meta, 256 * WP_Error object on error. 256 257 */ 257 258 public function make_subsize( $size_data ) { … … 418 419 * @param string|null $filename 419 420 * @param string|null $mime_type 420 * @return WP_Error|array421 * @return array|WP_Error 421 422 */ 422 423 protected function _save( $image, $filename = null, $mime_type = null ) { -
trunk/src/wp-includes/class-wp-image-editor-imagick.php
r46594 r46696 461 461 * @type bool $crop Whether to crop the image to exact dimensions. 462 462 * } 463 * @return WP_Error|array WP_Error on error, or the image data array for inclusion in the `sizes` array in the image meta. 463 * @return array|WP_Error The image data array for inclusion in the `sizes` array in the image meta, 464 * WP_Error object on error. 464 465 */ 465 466 public function make_subsize( $size_data ) { -
trunk/src/wp-includes/class-wp-oembed-controller.php
r46586 r46696 111 111 * 112 112 * @param WP_REST_Request $request Full data about the request. 113 * @return WP_Error|arrayoEmbed response data or WP_Error on failure.113 * @return array|WP_Error oEmbed response data or WP_Error on failure. 114 114 */ 115 115 public function get_item( $request ) { -
trunk/src/wp-includes/class-wp-theme.php
r46661 r46696 180 180 * @param string $theme_dir Directory of the theme within the theme_root. 181 181 * @param string $theme_root Theme root. 182 * @param WP_ Error|void$_child If this theme is a parent theme, the child may be passed for validation purposes.182 * @param WP_Theme|null $_child If this theme is a parent theme, the child may be passed for validation purposes. 183 183 */ 184 184 public function __construct( $theme_dir, $theme_root, $_child = null ) { -
trunk/src/wp-includes/feed.php
r45932 r46696 739 739 * See also {@link http://simplepie.org/wiki/faq/typical_multifeed_gotchas} 740 740 * 741 * @return WP_Error|SimplePie WP_Error object on failure or SimplePie object on success741 * @return SimplePie|WP_Error SimplePie object on success or WP_Error object on failure. 742 742 */ 743 743 function fetch_feed( $url ) { -
trunk/src/wp-includes/http.php
r46475 r46696 42 42 * @param string $url URL to retrieve. 43 43 * @param array $args Optional. Request arguments. Default empty array. 44 * @return WP_Error|arrayThe response or WP_Error on failure.44 * @return array|WP_Error The response or WP_Error on failure. 45 45 */ 46 46 function wp_safe_remote_request( $url, $args = array() ) { … … 63 63 * @param string $url URL to retrieve. 64 64 * @param array $args Optional. Request arguments. Default empty array. 65 * @return WP_Error|arrayThe response or WP_Error on failure.65 * @return array|WP_Error The response or WP_Error on failure. 66 66 */ 67 67 function wp_safe_remote_get( $url, $args = array() ) { … … 84 84 * @param string $url URL to retrieve. 85 85 * @param array $args Optional. Request arguments. Default empty array. 86 * @return WP_Error|arrayThe response or WP_Error on failure.86 * @return array|WP_Error The response or WP_Error on failure. 87 87 */ 88 88 function wp_safe_remote_post( $url, $args = array() ) { … … 105 105 * @param string $url URL to retrieve. 106 106 * @param array $args Optional. Request arguments. Default empty array. 107 * @return WP_Error|arrayThe response or WP_Error on failure.107 * @return array|WP_Error The response or WP_Error on failure. 108 108 */ 109 109 function wp_safe_remote_head( $url, $args = array() ) { … … 128 128 * @param string $url URL to retrieve. 129 129 * @param array $args Optional. Request arguments. Default empty array. 130 * @return WP_Error|array{130 * @return array|WP_Error { 131 131 * The response array or a WP_Error on failure. 132 132 * … … 158 158 * @param string $url URL to retrieve. 159 159 * @param array $args Optional. Request arguments. Default empty array. 160 * @return WP_Error|arrayThe response or WP_Error on failure.160 * @return array|WP_Error The response or WP_Error on failure. 161 161 */ 162 162 function wp_remote_get( $url, $args = array() ) { … … 175 175 * @param string $url URL to retrieve. 176 176 * @param array $args Optional. Request arguments. Default empty array. 177 * @return WP_Error|arrayThe response or WP_Error on failure.177 * @return array|WP_Error The response or WP_Error on failure. 178 178 */ 179 179 function wp_remote_post( $url, $args = array() ) { … … 192 192 * @param string $url URL to retrieve. 193 193 * @param array $args Optional. Request arguments. Default empty array. 194 * @return WP_Error|arrayThe response or WP_Error on failure.194 * @return array|WP_Error The response or WP_Error on failure. 195 195 */ 196 196 function wp_remote_head( $url, $args = array() ) { -
trunk/src/wp-includes/post.php
r46685 r46696 1406 1406 * this post type. Default 'post.php?post=%d'. 1407 1407 * } 1408 * @return WP_Post_Type|WP_Error The registered post type object, or an error object. 1408 * @return WP_Post_Type|WP_Error The registered post type object on success, 1409 * WP_Error object on failure. 1409 1410 */ 1410 1411 function register_post_type( $post_type, $args = array() ) { -
trunk/src/wp-includes/rest-api.php
r46660 r46696 505 505 * @since 4.4.0 506 506 * 507 * @param WP_ Error|WP_HTTP_Response|mixed $response Response to check.507 * @param WP_HTTP_Response|WP_Error|mixed $response Response to check. 508 508 * @return WP_REST_Response|mixed If response generated an error, WP_Error, if response 509 509 * is already an instance, WP_HTTP_Response, otherwise … … 873 873 * 874 874 * @param WP_Error|mixed $result Error from another authentication handler, 875 * null if we should handle it, or another value 876 * if not. 875 * null if we should handle it, or another value if not. 877 876 * @return WP_Error|mixed|bool WP_Error if the cookie is invalid, the $result, otherwise true. 878 877 */ … … 1026 1025 * @param WP_REST_Request $request 1027 1026 * @param string $param 1028 * @return WP_Error|boolean1027 * @return true|WP_Error 1029 1028 */ 1030 1029 function rest_validate_request_arg( $value, $request, $param ) { -
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r46685 r46696 130 130 * @since 4.4.0 131 131 * 132 * @param WP_Error|null| boolWP_Error if authentication error, null if authentication132 * @param WP_Error|null|true WP_Error if authentication error, null if authentication 133 133 * method wasn't used, true if authentication succeeded. 134 134 */ -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r46626 r46696 85 85 * 86 86 * @param WP_REST_Request $request Full details about the request. 87 * @return WP_Error|trueBoolean true if the attachment may be created, or a WP_Error if not.87 * @return true|WP_Error Boolean true if the attachment may be created, or a WP_Error if not. 88 88 */ 89 89 public function create_item_permissions_check( $request ) { … … 117 117 * 118 118 * @param WP_REST_Request $request Full details about the request. 119 * @return WP_ Error|WP_REST_ResponseResponse object on success, WP_Error object on failure.119 * @return WP_REST_Response|WP_Error Response object on success, WP_Error object on failure. 120 120 */ 121 121 public function create_item( $request ) { … … 275 275 * 276 276 * @param WP_REST_Request $request Full details about the request. 277 * @return WP_ Error|WP_REST_ResponseResponse object on success, WP_Error object on failure.277 * @return WP_REST_Response|WP_Error Response object on success, WP_Error object on failure. 278 278 */ 279 279 public function update_item( $request ) { … … 353 353 * 354 354 * @param WP_REST_Request $request Request object. 355 * @return WP_Error|stdClass $prepared_attachmentPost object.355 * @return stdClass|WP_Error Post object. 356 356 */ 357 357 protected function prepare_item_for_database( $request ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
r46586 r46696 119 119 * 120 120 * @param WP_REST_Request $request Full details about the request. 121 * @return WP_Error|boolTrue if the request has read access, error object otherwise.121 * @return true|WP_Error True if the request has read access, error object otherwise. 122 122 */ 123 123 public function get_items_permissions_check( $request ) { … … 176 176 * 177 177 * @param WP_REST_Request $request Full details about the request. 178 * @return WP_ Error|WP_REST_ResponseResponse object on success, or error object on failure.178 * @return WP_REST_Response|WP_Error Response object on success, or error object on failure. 179 179 */ 180 180 public function get_items( $request ) { … … 350 350 * 351 351 * @param WP_REST_Request $request Full details about the request. 352 * @return WP_Error|boolTrue if the request has read access for the item, error object otherwise.352 * @return true|WP_Error True if the request has read access for the item, error object otherwise. 353 353 */ 354 354 public function get_item_permissions_check( $request ) { … … 381 381 * 382 382 * @param WP_REST_Request $request Full details about the request. 383 * @return WP_ Error|WP_REST_ResponseResponse object on success, or error object on failure.383 * @return WP_REST_Response|WP_Error Response object on success, or error object on failure. 384 384 */ 385 385 public function get_item( $request ) { … … 401 401 * 402 402 * @param WP_REST_Request $request Full details about the request. 403 * @return WP_Error|boolTrue if the request has access to create items, error object otherwise.403 * @return true|WP_Error True if the request has access to create items, error object otherwise. 404 404 */ 405 405 public function create_item_permissions_check( $request ) { … … 491 491 * 492 492 * @param WP_REST_Request $request Full details about the request. 493 * @return WP_ Error|WP_REST_ResponseResponse object on success, or error object on failure.493 * @return WP_REST_Response|WP_Error Response object on success, or error object on failure. 494 494 */ 495 495 public function create_item( $request ) { … … 668 668 * 669 669 * @param WP_REST_Request $request Full details about the request. 670 * @return WP_Error|boolTrue if the request has access to update the item, error object otherwise.670 * @return true|WP_Error True if the request has access to update the item, error object otherwise. 671 671 */ 672 672 public function update_item_permissions_check( $request ) { … … 689 689 * 690 690 * @param WP_REST_Request $request Full details about the request. 691 * @return WP_ Error|WP_REST_ResponseResponse object on success, or error object on failure.691 * @return WP_REST_Response|WP_Error Response object on success, or error object on failure. 692 692 */ 693 693 public function update_item( $request ) { … … 788 788 * 789 789 * @param WP_REST_Request $request Full details about the request. 790 * @return WP_Error|boolTrue if the request has access to delete the item, error object otherwise.790 * @return true|WP_Error True if the request has access to delete the item, error object otherwise. 791 791 */ 792 792 public function delete_item_permissions_check( $request ) { … … 808 808 * 809 809 * @param WP_REST_Request $request Full details about the request. 810 * @return WP_ Error|WP_REST_ResponseResponse object on success, or error object on failure.810 * @return WP_REST_Response|WP_Error Response object on success, or error object on failure. 811 811 */ 812 812 public function delete_item( $request ) { … … 1692 1692 * @param WP_REST_Request $request Full details about the request. 1693 1693 * @param string $param The parameter name. 1694 * @return WP_Error|stringThe sanitized email address, if valid,1694 * @return string|WP_Error The sanitized email address, if valid, 1695 1695 * otherwise an error. 1696 1696 */ -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-controller.php
r46586 r46696 55 55 * 56 56 * @param WP_REST_Request $request Full data about the request. 57 * @return WP_Error|boolTrue if the request has read access, WP_Error object otherwise.57 * @return true|WP_Error True if the request has read access, WP_Error object otherwise. 58 58 */ 59 59 public function get_items_permissions_check( $request ) { … … 68 68 * 69 69 * @param WP_REST_Request $request Full data about the request. 70 * @return WP_ Error|WP_REST_ResponseResponse object on success, or WP_Error object on failure.70 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 71 71 */ 72 72 public function get_items( $request ) { … … 81 81 * 82 82 * @param WP_REST_Request $request Full data about the request. 83 * @return WP_Error|boolTrue if the request has read access for the item, WP_Error object otherwise.83 * @return true|WP_Error True if the request has read access for the item, WP_Error object otherwise. 84 84 */ 85 85 public function get_item_permissions_check( $request ) { … … 94 94 * 95 95 * @param WP_REST_Request $request Full data about the request. 96 * @return WP_ Error|WP_REST_ResponseResponse object on success, or WP_Error object on failure.96 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 97 97 */ 98 98 public function get_item( $request ) { … … 107 107 * 108 108 * @param WP_REST_Request $request Full data about the request. 109 * @return WP_Error|boolTrue if the request has access to create items, WP_Error object otherwise.109 * @return true|WP_Error True if the request has access to create items, WP_Error object otherwise. 110 110 */ 111 111 public function create_item_permissions_check( $request ) { … … 120 120 * 121 121 * @param WP_REST_Request $request Full data about the request. 122 * @return WP_ Error|WP_REST_ResponseResponse object on success, or WP_Error object on failure.122 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 123 123 */ 124 124 public function create_item( $request ) { … … 133 133 * 134 134 * @param WP_REST_Request $request Full data about the request. 135 * @return WP_Error|boolTrue if the request has access to update the item, WP_Error object otherwise.135 * @return true|WP_Error True if the request has access to update the item, WP_Error object otherwise. 136 136 */ 137 137 public function update_item_permissions_check( $request ) { … … 146 146 * 147 147 * @param WP_REST_Request $request Full data about the request. 148 * @return WP_ Error|WP_REST_ResponseResponse object on success, or WP_Error object on failure.148 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 149 149 */ 150 150 public function update_item( $request ) { … … 159 159 * 160 160 * @param WP_REST_Request $request Full data about the request. 161 * @return WP_Error|boolTrue if the request has access to delete the item, WP_Error object otherwise.161 * @return true|WP_Error True if the request has access to delete the item, WP_Error object otherwise. 162 162 */ 163 163 public function delete_item_permissions_check( $request ) { … … 172 172 * 173 173 * @param WP_REST_Request $request Full data about the request. 174 * @return WP_ Error|WP_REST_ResponseResponse object on success, or WP_Error object on failure.174 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 175 175 */ 176 176 public function delete_item( $request ) { … … 185 185 * 186 186 * @param WP_REST_Request $request Request object. 187 * @return WP_Error|objectThe prepared item, or WP_Error object on failure.187 * @return object|WP_Error The prepared item, or WP_Error object on failure. 188 188 */ 189 189 protected function prepare_item_for_database( $request ) { … … 199 199 * @param mixed $item WordPress representation of the item. 200 200 * @param WP_REST_Request $request Request object. 201 * @return WP_ Error|WP_REST_ResponseResponse object on success, or WP_Error object on failure.201 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 202 202 */ 203 203 public function prepare_item_for_response( $item, $request ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php
r46586 r46696 79 79 * 80 80 * @param WP_REST_Request $request Full details about the request. 81 * @return WP_Error|boolTrue if the request has read access, WP_Error object otherwise.81 * @return true|WP_Error True if the request has read access, WP_Error object otherwise. 82 82 */ 83 83 public function get_items_permissions_check( $request ) { … … 102 102 * 103 103 * @param WP_REST_Request $request Full details about the request. 104 * @return WP_ Error|WP_REST_ResponseResponse object on success, or WP_Error object on failure.104 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 105 105 */ 106 106 public function get_items( $request ) { … … 129 129 * 130 130 * @param WP_REST_Request $request Full details about the request. 131 * @return WP_Error|boolTrue if the request has read access for the item, WP_Error object otherwise.131 * @return true|WP_Error True if the request has read access for the item, WP_Error object otherwise. 132 132 */ 133 133 public function get_item_permissions_check( $request ) { … … 179 179 * 180 180 * @param WP_REST_Request $request Full details about the request. 181 * @return WP_ Error|WP_REST_ResponseResponse object on success, or WP_Error object on failure.181 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 182 182 */ 183 183 public function get_item( $request ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php
r46586 r46696 78 78 * 79 79 * @param WP_REST_Request $request Full details about the request. 80 * @return WP_Error|trueTrue if the request has read access, WP_Error object otherwise.80 * @return true|WP_Error True if the request has read access, WP_Error object otherwise. 81 81 */ 82 82 public function get_items_permissions_check( $request ) { … … 100 100 * 101 101 * @param WP_REST_Request $request Full details about the request. 102 * @return WP_ Error|WP_REST_ResponseResponse object on success, or WP_Error object on failure.102 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 103 103 */ 104 104 public function get_items( $request ) { … … 123 123 * 124 124 * @param WP_REST_Request $request Full details about the request. 125 * @return WP_ Error|WP_REST_ResponseResponse object on success, or WP_Error object on failure.125 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 126 126 */ 127 127 public function get_item( $request ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r46586 r46696 1126 1126 * @param WP_REST_Request $request Full details about the request. 1127 1127 * @param string $param The parameter name. 1128 * @return WP_Error|stringThe sanitized username, if valid, otherwise an error.1128 * @return string|WP_Error The sanitized username, if valid, otherwise an error. 1129 1129 */ 1130 1130 public function check_username( $value, $request, $param ) { … … 1155 1155 * @param WP_REST_Request $request Full details about the request. 1156 1156 * @param string $param The parameter name. 1157 * @return WP_Error|stringThe sanitized password, if valid, otherwise an error.1157 * @return string|WP_Error The sanitized password, if valid, otherwise an error. 1158 1158 */ 1159 1159 public function check_user_password( $value, $request, $param ) { -
trunk/src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php
r46586 r46696 71 71 * @param int $object_id Object ID to fetch meta for. 72 72 * @param WP_REST_Request $request Full details about the request. 73 * @return WP_Error|objectObject containing the meta values by name, otherwise WP_Error object.73 * @return object|WP_Error Object containing the meta values by name, otherwise WP_Error object. 74 74 */ 75 75 public function get_value( $object_id, $request ) { … … 129 129 * @param array $meta Array of meta parsed from the request. 130 130 * @param int $object_id Object ID to fetch meta for. 131 * @return WP_Error|null WP_Error if one occurs, null on success.131 * @return null|WP_Error Null on success, WP_Error object on failure. 132 132 */ 133 133 public function update_value( $meta, $object_id ) { … … 521 521 * @param WP_REST_Request $request Full details about the request. 522 522 * @param string $param The parameter name. 523 * @return WP_Error|string The meta array, if valid, otherwise an error.523 * @return array|false The meta array, if valid, false otherwise. 524 524 */ 525 525 public function check_meta_is_array( $value, $request, $param ) { -
trunk/src/wp-includes/taxonomy.php
r46685 r46696 409 409 * Default false. 410 410 * } 411 * @return WP_Error|void WP_Error, if errors.411 * @return void|WP_Error Void on success, WP_Error object on failure. 412 412 */ 413 413 function register_taxonomy( $taxonomy, $object_type, $args = array() ) { -
trunk/src/wp-includes/theme.php
r46660 r46696 80 80 $themes[ $theme ] = $_themes[ $theme_root['theme_root'] . '/' . $theme ]; 81 81 } else { 82 $themes[ $theme ] = new WP_Theme( $theme, $theme_root['theme_root'] ); 82 $themes[ $theme ] = new WP_Theme( $theme, $theme_root['theme_root'] ); 83 83 84 $_themes[ $theme_root['theme_root'] . '/' . $theme ] = $themes[ $theme ]; 84 85 } -
trunk/src/wp-includes/wp-db.php
r46660 r46696 3500 3500 * @global string $required_mysql_version 3501 3501 * 3502 * @return WP_Error|void3502 * @return void|WP_Error 3503 3503 */ 3504 3504 public function check_database_version() { -
trunk/src/wp-signup.php
r46684 r46696 96 96 * @param string $blogname The new site name. 97 97 * @param string $blog_title The new site title. 98 * @param WP_Error|string$errors A WP_Error object containing existing errors. Defaults to empty string.98 * @param string|WP_Error $errors A WP_Error object containing existing errors. Defaults to empty string. 99 99 */ 100 100 function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) { … … 247 247 * @param string $user_name The entered username. 248 248 * @param string $user_email The entered email address. 249 * @param WP_Error|string$errors A WP_Error object containing existing errors. Defaults to empty string.249 * @param string|WP_Error $errors A WP_Error object containing existing errors. Defaults to empty string. 250 250 */ 251 251 function show_user_form( $user_name = '', $user_email = '', $errors = '' ) { … … 305 305 * @param string $blogname The new site name 306 306 * @param string $blog_title The new site title. 307 * @param WP_Error|string$errors A WP_Error object containing existing errors. Defaults to empty string.307 * @param string|WP_Error $errors A WP_Error object containing existing errors. Defaults to empty string. 308 308 */ 309 309 function signup_another_blog( $blogname = '', $blog_title = '', $errors = '' ) { … … 554 554 * @param string $user_name The username. 555 555 * @param string $user_email The user's email. 556 * @param WP_Error|string$errors A WP_Error object containing existing errors. Defaults to empty string.556 * @param string|WP_Error $errors A WP_Error object containing existing errors. Defaults to empty string. 557 557 */ 558 558 function signup_user( $user_name = '', $user_email = '', $errors = '' ) { … … 692 692 * @param string $blogname The site name. 693 693 * @param string $blog_title The site title. 694 * @param WP_Error|string$errors A WP_Error object containing existing errors. Defaults to empty string.694 * @param string|WP_Error $errors A WP_Error object containing existing errors. Defaults to empty string. 695 695 */ 696 696 function signup_blog( $user_name = '', $user_email = '', $blogname = '', $blog_title = '', $errors = '' ) { -
trunk/tests/phpunit/tests/rest-api/rest-test-controller.php
r46586 r46696 16 16 * @param mixed $item WordPress representation of the item. 17 17 * @param WP_REST_Request $request Request object. 18 * @return WP_ Error|WP_REST_ResponseResponse object on success, or WP_Error object on failure.18 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 19 19 */ 20 20 public function prepare_item_for_response( $item, $request ) {
Note: See TracChangeset
for help on using the changeset viewer.