@@ -179,7 +179,7 @@ |
||
179 | 179 | * @access public |
180 | 180 | * |
181 | 181 | * @param WP_REST_Request $request Request object. |
182 | - * @return WP_Error|object The prepared item, or WP_Error object on failure. |
|
182 | + * @return WP_Error The prepared item, or WP_Error object on failure. |
|
183 | 183 | */ |
184 | 184 | protected function prepare_item_for_database( $request ) { |
185 | 185 | return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) ); |
@@ -1061,7 +1061,7 @@ discard block |
||
1061 | 1061 | * @access protected |
1062 | 1062 | * |
1063 | 1063 | * @param string $post_status Post status. |
1064 | - * @param object $post_type Post type. |
|
1064 | + * @param WP_Post_Type|null $post_type Post type. |
|
1065 | 1065 | * @return string|WP_Error Post status or WP_Error if lacking the proper permission. |
1066 | 1066 | */ |
1067 | 1067 | protected function handle_status_param( $post_status, $post_type ) { |
@@ -1201,7 +1201,7 @@ discard block |
||
1201 | 1201 | * @since 4.7.0 |
1202 | 1202 | * @access protected |
1203 | 1203 | * |
1204 | - * @param object|string $post_type Post type name or object. |
|
1204 | + * @param WP_Post_Type|null $post_type Post type name or object. |
|
1205 | 1205 | * @return bool Whether the post type is allowed in REST. |
1206 | 1206 | */ |
1207 | 1207 | protected function check_is_post_type_allowed( $post_type ) { |
@@ -83,6 +83,9 @@ |
||
83 | 83 | return $result; |
84 | 84 | } |
85 | 85 | |
86 | + /** |
|
87 | + * @param string $cmd |
|
88 | + */ |
|
86 | 89 | function _exec($cmd, $fnction="_exec") { |
87 | 90 | if(!$this->_ready) { |
88 | 91 | $this->PushError($fnction,'Connect first'); |
@@ -307,7 +307,7 @@ |
||
307 | 307 | * @since 4.8.0 |
308 | 308 | * |
309 | 309 | * @param array $location Should contain 'latitude' and 'longitude' indexes. |
310 | - * @return bool|string false on failure, or a string on success. |
|
310 | + * @return string|false false on failure, or a string on success. |
|
311 | 311 | */ |
312 | 312 | protected function get_events_transient_key( $location ) { |
313 | 313 | $key = false; |
@@ -153,7 +153,7 @@ |
||
153 | 153 | * |
154 | 154 | * @param string $file |
155 | 155 | * @param string $contents |
156 | - * @param bool|int $mode |
|
156 | + * @param string|boolean $mode |
|
157 | 157 | * @return bool |
158 | 158 | */ |
159 | 159 | public function put_contents($file, $contents, $mode = false ) { |
@@ -127,8 +127,8 @@ |
||
127 | 127 | * @param int $currentparent Optional. Current parent category ID. Default 0. |
128 | 128 | * @param int $parent Optional. Parent ID to retrieve categories for. Default 0. |
129 | 129 | * @param int $level Optional. Number of levels deep to display. Default 0. |
130 | - * @param array $categories Optional. Categories to include in the control. Default 0. |
|
131 | - * @return bool|null False if no categories were found. |
|
130 | + * @param integer $categories Optional. Categories to include in the control. Default 0. |
|
131 | + * @return null|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 ) { |
134 | 134 | _deprecated_function( __FUNCTION__, '3.0.0', 'wp_dropdown_categories()' ); |
@@ -384,7 +384,7 @@ |
||
384 | 384 | * @ignore |
385 | 385 | * @param resource $img Image resource. |
386 | 386 | * @param float|int $angle Image rotation angle, in degrees. |
387 | - * @return resource|false GD image resource, false otherwise. |
|
387 | + * @return resource GD image resource, false otherwise. |
|
388 | 388 | */ |
389 | 389 | function _rotate_image_resource($img, $angle) { |
390 | 390 | _deprecated_function( __FUNCTION__, '3.5.0', 'WP_Image_Editor::rotate()' ); |
@@ -780,7 +780,7 @@ |
||
780 | 780 | * @global int $wp_db_version The version number of the database. |
781 | 781 | * @global string $pagenow |
782 | 782 | * |
783 | - * @return false False if the current user is not a super admin. |
|
783 | + * @return false|null False if the current user is not a super admin. |
|
784 | 784 | */ |
785 | 785 | function site_admin_notice() { |
786 | 786 | global $wp_db_version, $pagenow; |
@@ -1375,7 +1375,7 @@ discard block |
||
1375 | 1375 | * @since 2.9.0 |
1376 | 1376 | * |
1377 | 1377 | * @param int $thumbnail_id ID of the attachment used for thumbnail |
1378 | - * @param mixed $post The post ID or object associated with the thumbnail, defaults to global $post. |
|
1378 | + * @param integer $post The post ID or object associated with the thumbnail, defaults to global $post. |
|
1379 | 1379 | * @return string html |
1380 | 1380 | */ |
1381 | 1381 | function _wp_post_thumbnail_html( $thumbnail_id = null, $post = null ) { |
@@ -1449,7 +1449,7 @@ discard block |
||
1449 | 1449 | * @since 2.5.0 |
1450 | 1450 | * |
1451 | 1451 | * @param int $post_id ID of the post to check for editing. |
1452 | - * @return int|false ID of the user with lock. False if the post does not exist, post is not locked, |
|
1452 | + * @return integer ID of the user with lock. False if the post does not exist, post is not locked, |
|
1453 | 1453 | * the user with lock does not exist, or the post is locked by current user. |
1454 | 1454 | */ |
1455 | 1455 | function wp_check_post_lock( $post_id ) { |