@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * Convenience function for grabbing options from params->options |
48 | 48 | * |
49 | 49 | * @param string $option the option to grab |
50 | - * @param mixed $default (optional) |
|
50 | + * @param boolean $default (optional) |
|
51 | 51 | * @return option or $default if not set |
52 | 52 | * |
53 | 53 | * @since 4.5.0 |
@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | |
466 | 466 | /** |
467 | 467 | * Check the reasons to bail before we attempt to insert ads. |
468 | - * @return true if we should bail (don't insert ads) |
|
468 | + * @return boolean if we should bail (don't insert ads) |
|
469 | 469 | * |
470 | 470 | * @since 4.5.0 |
471 | 471 | */ |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | * Update the media post grabbing the post values from |
102 | 102 | * the `attrs` parameter |
103 | 103 | * |
104 | - * @param {Number} $media_id - post media ID |
|
104 | + * @param integer $media_id - post media ID |
|
105 | 105 | * @param {Object} $attrs - `attrs` parameter sent from the client in the request body |
106 | 106 | * @return |
107 | 107 | */ |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | * Save the given temporal file in a local folder. |
203 | 203 | * |
204 | 204 | * @param {Array} $file_array |
205 | - * @param {Number} $media_id |
|
205 | + * @param integer $media_id |
|
206 | 206 | * @return {Array|WP_Error} An array with information about the new file saved or a WP_Error is something went wrong. |
207 | 207 | */ |
208 | 208 | private function save_temporary_file( $file_array, $media_id ) { |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | /** |
278 | 278 | * Get the image from a remote url and then save it locally. |
279 | 279 | * |
280 | - * @param {Number} $media_id - media post ID |
|
280 | + * @param integer $media_id - media post ID |
|
281 | 281 | * @param {String} $url - image URL to save locally |
282 | 282 | * @return {Array|WP_Error} An array with information about the new file saved or a WP_Error is something went wrong. |
283 | 283 | */ |