@@ -165,7 +165,7 @@ |
||
165 | 165 | * @param string $url Request URL. |
166 | 166 | * @param mixed $body Request body. |
167 | 167 | * @param bool $verify_body_hash Whether to verify the body hash against the body. |
168 | - * @return string|WP_Error Request signature, or a WP_Error on failure. |
|
168 | + * @return string Request signature, or a WP_Error on failure. |
|
169 | 169 | */ |
170 | 170 | public function sign_request( $token = '', $timestamp = 0, $nonce = '', $body_hash = '', $method = '', $url = '', $body = null, $verify_body_hash = true ) { |
171 | 171 | if ( ! $this->secret ) { |
@@ -166,6 +166,7 @@ discard block |
||
166 | 166 | /** |
167 | 167 | * Get attachment images for a specified post and return them. Also make sure |
168 | 168 | * their dimensions are at or above a required minimum. |
169 | + * @param integer $post_id |
|
169 | 170 | */ |
170 | 171 | static function from_attachment( $post_id, $width = 200, $height = 200 ) { |
171 | 172 | $images = array(); |
@@ -232,7 +233,7 @@ discard block |
||
232 | 233 | * format to the other images?_from_*() methods. |
233 | 234 | * |
234 | 235 | * @param int $post_id The post ID to check |
235 | - * @return Array containing details of the Featured Image, or empty array if none. |
|
236 | + * @return integer|null containing details of the Featured Image, or empty array if none. |
|
236 | 237 | */ |
237 | 238 | static function from_thumbnail( $post_id, $width = 200, $height = 200 ) { |
238 | 239 | $images = array(); |
@@ -687,7 +688,6 @@ discard block |
||
687 | 688 | * resized and cropped image. |
688 | 689 | * |
689 | 690 | * @param string $src |
690 | - * @param int $dimension |
|
691 | 691 | * @return string Transformed image URL |
692 | 692 | */ |
693 | 693 | static function fit_image_url( $src, $width, $height ) { |
@@ -1534,6 +1534,7 @@ discard block |
||
1534 | 1534 | * timezone set in the options table for the blog or the GMT offset. |
1535 | 1535 | * |
1536 | 1536 | * @param datetime string $date_string Date to parse. |
1537 | + * @param string $date_string |
|
1537 | 1538 | * |
1538 | 1539 | * @return array( $local_time_string, $gmt_time_string ) |
1539 | 1540 | */ |
@@ -1643,6 +1644,10 @@ discard block |
||
1643 | 1644 | do_action( 'restapi_theme_init' ); |
1644 | 1645 | } |
1645 | 1646 | |
1647 | + /** |
|
1648 | + * @param string $from_hook |
|
1649 | + * @param string $to_hook |
|
1650 | + */ |
|
1646 | 1651 | function copy_hooks( $from_hook, $to_hook, $base_paths ) { |
1647 | 1652 | global $wp_filter; |
1648 | 1653 | foreach ( $wp_filter as $hook => $actions ) { |