@@ -752,7 +752,7 @@ |
||
752 | 752 | |
753 | 753 | /** |
754 | 754 | * |
755 | - * @return array |
|
755 | + * @return string[] |
|
756 | 756 | */ |
757 | 757 | protected function get_table_classes() { |
758 | 758 | $classes = parent::get_table_classes(); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | * Adds custom classes to the array of body classes. |
12 | 12 | * |
13 | 13 | * @param array $classes Classes for the body element. |
14 | - * @return array |
|
14 | + * @return string[] |
|
15 | 15 | */ |
16 | 16 | function twentyseventeen_body_classes( $classes ) { |
17 | 17 | // Add class of group-blog to blogs with more than 1 published author. |
@@ -354,7 +354,7 @@ |
||
354 | 354 | * @param int $bookmark_id Bookmark ID. |
355 | 355 | * @param string $context How to filter the field value. Accepts 'raw', 'edit', 'attribute', |
356 | 356 | * 'js', 'db', or 'display' |
357 | - * @return mixed The filtered value. |
|
357 | + * @return string The filtered value. |
|
358 | 358 | */ |
359 | 359 | function sanitize_bookmark_field( $field, $value, $bookmark_id, $context ) { |
360 | 360 | switch ( $field ) { |
@@ -195,7 +195,7 @@ |
||
195 | 195 | * |
196 | 196 | * @since 4.1.0 |
197 | 197 | * |
198 | - * @param string|int $code Error code. |
|
198 | + * @param string $code Error code. |
|
199 | 199 | */ |
200 | 200 | public function remove( $code ) { |
201 | 201 | unset( $this->errors[ $code ] ); |
@@ -699,7 +699,7 @@ |
||
699 | 699 | * @access public |
700 | 700 | * |
701 | 701 | * @param string $subject subject |
702 | - * @param array $matches data used for substitution |
|
702 | + * @param string[] $matches data used for substitution |
|
703 | 703 | * @return string |
704 | 704 | */ |
705 | 705 | public static function apply($subject, $matches) { |
@@ -21,7 +21,7 @@ |
||
21 | 21 | * |
22 | 22 | * @param string $string |
23 | 23 | * @param string $newlineEscape |
24 | - * @return string |
|
24 | + * @return string[] |
|
25 | 25 | */ |
26 | 26 | public function _splitOnWords($string, $newlineEscape = "\n") { |
27 | 27 | $string = str_replace("\0", '', $string); |
@@ -328,7 +328,7 @@ |
||
328 | 328 | * |
329 | 329 | * @param string $handle Name of the script. |
330 | 330 | * @param string $key Name of data point for which we're storing a value. |
331 | - * @param mixed $value String containing the data to be added. |
|
331 | + * @param string $value String containing the data to be added. |
|
332 | 332 | * @return bool True on success, false on failure. |
333 | 333 | */ |
334 | 334 | function wp_script_add_data( $handle, $key, $value ){ |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * |
37 | 37 | * @since 2.6.0 |
38 | 38 | * |
39 | - * @param string|bool|array $handles Styles to be printed. Default 'false'. |
|
39 | + * @param string $handles Styles to be printed. Default 'false'. |
|
40 | 40 | * @return array On success, a processed array of WP_Dependencies items; otherwise, an empty array. |
41 | 41 | */ |
42 | 42 | function wp_print_styles( $handles = false ) { |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * @param string $handle Name of the stylesheet. Should be unique. |
109 | 109 | * @param string $src Full URL of the stylesheet, or path of the stylesheet relative to the WordPress root directory. |
110 | 110 | * @param array $deps Optional. An array of registered stylesheet handles this stylesheet depends on. Default empty array. |
111 | - * @param string|bool|null $ver Optional. String specifying stylesheet version number, if it has one, which is added to the URL |
|
111 | + * @param integer $ver Optional. String specifying stylesheet version number, if it has one, which is added to the URL |
|
112 | 112 | * as a query string for cache busting purposes. If version is set to false, a version |
113 | 113 | * number is automatically added equal to current installed WordPress version. |
114 | 114 | * If set to null, no version is added. |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | * @param string $handle Name of the stylesheet. |
224 | 224 | * @param string $key Name of data point for which we're storing a value. |
225 | 225 | * Accepts 'conditional', 'rtl' and 'suffix', 'alt' and 'title'. |
226 | - * @param mixed $value String containing the CSS data to be added. |
|
226 | + * @param string $value String containing the CSS data to be added. |
|
227 | 227 | * @return bool True on success, false on failure. |
228 | 228 | */ |
229 | 229 | function wp_style_add_data( $handle, $key, $value ) { |
@@ -37,7 +37,7 @@ |
||
37 | 37 | * lose precision, so the <= and => operators might accidentally let a float |
38 | 38 | * through. |
39 | 39 | * |
40 | - * @param int|float $number The number we want to convert to an int |
|
40 | + * @param integer $number The number we want to convert to an int |
|
41 | 41 | * @param boolean $fail_open Set to true to not throw an exception |
42 | 42 | * |
43 | 43 | * @return int (or float if $fail_open) |