@@ -242,7 +242,7 @@ |
||
| 242 | 242 | * |
| 243 | 243 | * @param string $name Post value. |
| 244 | 244 | * @param mixed $default Default post value. |
| 245 | - * @return mixed Unslashed post value or default value. |
|
| 245 | + * @return string Unslashed post value or default value. |
|
| 246 | 246 | */ |
| 247 | 247 | protected function get_post_value( $name, $default = null ) { |
| 248 | 248 | if ( ! isset( $_POST[ $name ] ) ) { |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | * @since 4.6.0 |
| 66 | 66 | * @access public |
| 67 | 67 | * |
| 68 | - * @return array Map of header name to header value. |
|
| 68 | + * @return Requests_Utility_CaseInsensitiveDictionary Map of header name to header value. |
|
| 69 | 69 | */ |
| 70 | 70 | public function get_headers() { |
| 71 | 71 | // Ensure headers remain case-insensitive |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | * @since 4.6.0 |
| 145 | 145 | * @access public |
| 146 | 146 | * |
| 147 | - * @return mixed Response data. |
|
| 147 | + * @return string Response data. |
|
| 148 | 148 | */ |
| 149 | 149 | public function get_data() { |
| 150 | 150 | return $this->response->body; |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | * @since 4.4.0 |
| 64 | 64 | * @access public |
| 65 | 65 | * |
| 66 | - * @return array Map of header name to header value. |
|
| 66 | + * @return integer Map of header name to header value. |
|
| 67 | 67 | */ |
| 68 | 68 | public function get_headers() { |
| 69 | 69 | return $this->headers; |
@@ -127,7 +127,7 @@ |
||
| 127 | 127 | * |
| 128 | 128 | * @param int $width |
| 129 | 129 | * @param int $height |
| 130 | - * @return true |
|
| 130 | + * @return boolean |
|
| 131 | 131 | */ |
| 132 | 132 | protected function update_size( $width = false, $height = false ) { |
| 133 | 133 | if ( ! $width ) |
@@ -281,7 +281,7 @@ |
||
| 281 | 281 | * @param int $dst_h The destination height. |
| 282 | 282 | * @param string $filter_name Optional. The Imagick filter to use when resizing. Default 'FILTER_TRIANGLE'. |
| 283 | 283 | * @param bool $strip_meta Optional. Strip all profiles, excluding color profiles, from the image. Default true. |
| 284 | - * @return bool|WP_Error |
|
| 284 | + * @return null|WP_Error |
|
| 285 | 285 | */ |
| 286 | 286 | protected function thumbnail_image( $dst_w, $dst_h, $filter_name = 'FILTER_TRIANGLE', $strip_meta = true ) { |
| 287 | 287 | $allowed_filters = array( |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | * |
| 200 | 200 | * @param int $width |
| 201 | 201 | * @param int $height |
| 202 | - * @return true |
|
| 202 | + * @return boolean |
|
| 203 | 203 | */ |
| 204 | 204 | protected function update_size( $width = null, $height = null ) { |
| 205 | 205 | $this->size = array( |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | * @since 4.0.0 |
| 216 | 216 | * @access public |
| 217 | 217 | * |
| 218 | - * @return int $quality Compression Quality. Range: [1,100] |
|
| 218 | + * @return boolean $quality Compression Quality. Range: [1,100] |
|
| 219 | 219 | */ |
| 220 | 220 | public function get_quality() { |
| 221 | 221 | if ( ! $this->quality ) { |
@@ -205,7 +205,7 @@ |
||
| 205 | 205 | * @global wpdb $wpdb WordPress database abstraction object. |
| 206 | 206 | * |
| 207 | 207 | * @param int $post_id Post ID. |
| 208 | - * @return WP_Post|false Post object, false otherwise. |
|
| 208 | + * @return string Post object, false otherwise. |
|
| 209 | 209 | */ |
| 210 | 210 | public static function get_instance( $post_id ) { |
| 211 | 211 | global $wpdb; |
@@ -440,7 +440,7 @@ discard block |
||
| 440 | 440 | * and care should be taken to use `$theme::display( 'Name' )` to get a properly |
| 441 | 441 | * translated header. |
| 442 | 442 | * |
| 443 | - * @param mixed $offset |
|
| 443 | + * @param string $offset |
|
| 444 | 444 | * @return mixed |
| 445 | 445 | */ |
| 446 | 446 | public function offsetGet( $offset ) { |
@@ -989,7 +989,7 @@ discard block |
||
| 989 | 989 | * @since 3.4.0 |
| 990 | 990 | * @access public |
| 991 | 991 | * |
| 992 | - * @param mixed $type Optional. Array of extensions to return. Defaults to all files (null). |
|
| 992 | + * @param string $type Optional. Array of extensions to return. Defaults to all files (null). |
|
| 993 | 993 | * @param int $depth Optional. How deep to search for files. Defaults to a flat scan (0 depth). -1 depth is infinite. |
| 994 | 994 | * @param bool $search_parent Optional. Whether to return parent files. Defaults to false. |
| 995 | 995 | * @return array Array of files, keyed by the path to the file relative to the theme's directory, with the values |
@@ -1363,7 +1363,7 @@ discard block |
||
| 1363 | 1363 | * @access public |
| 1364 | 1364 | * @static |
| 1365 | 1365 | * |
| 1366 | - * @param string|array $stylesheets Stylesheet name or array of stylesheet names. |
|
| 1366 | + * @param string $stylesheets Stylesheet name or array of stylesheet names. |
|
| 1367 | 1367 | */ |
| 1368 | 1368 | public static function network_disable_theme( $stylesheets ) { |
| 1369 | 1369 | if ( ! is_multisite() ) { |
@@ -767,7 +767,7 @@ |
||
| 767 | 767 | * @access public |
| 768 | 768 | * |
| 769 | 769 | * @param string $name Property to check if set. |
| 770 | - * @return bool Whether the property is set. |
|
| 770 | + * @return boolean|null Whether the property is set. |
|
| 771 | 771 | */ |
| 772 | 772 | public function __isset( $name ) { |
| 773 | 773 | if ( in_array( $name, $this->compat_fields ) ) { |