@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | * @access public |
249 | 249 | * |
250 | 250 | * @param WP_REST_Request $request Request object. |
251 | - * @return WP_Error|stdClass $prepared_attachment Post object. |
|
251 | + * @return string $prepared_attachment Post object. |
|
252 | 252 | */ |
253 | 253 | protected function prepare_item_for_database( $request ) { |
254 | 254 | $prepared_attachment = parent::prepare_item_for_database( $request ); |
@@ -483,7 +483,7 @@ discard block |
||
483 | 483 | * @since 4.7.0 |
484 | 484 | * @access protected |
485 | 485 | * |
486 | - * @param array $data Supplied file data. |
|
486 | + * @param string $data Supplied file data. |
|
487 | 487 | * @param array $headers HTTP headers from the request. |
488 | 488 | * @return array|WP_Error Data from wp_handle_sideload(). |
489 | 489 | */ |
@@ -1002,7 +1002,7 @@ |
||
1002 | 1002 | * @since 4.7.0 |
1003 | 1003 | * @access protected |
1004 | 1004 | * |
1005 | - * @param string|int $comment_approved comment status. |
|
1005 | + * @param string $comment_approved comment status. |
|
1006 | 1006 | * @return string Comment status. |
1007 | 1007 | */ |
1008 | 1008 | protected function prepare_status_response( $comment_approved ) { |
@@ -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()' ); |