@@ -310,7 +310,7 @@ |
||
| 310 | 310 | /** |
| 311 | 311 | * Get the current user id |
| 312 | 312 | * |
| 313 | - * @return int |
|
| 313 | + * @return string |
|
| 314 | 314 | */ |
| 315 | 315 | public function get_user_id() { |
| 316 | 316 | if ( is_user_logged_in() ) { |
@@ -514,7 +514,7 @@ |
||
| 514 | 514 | * Send a synchronous XML-RPC subscribe to blog posts or subscribe to post comments request. |
| 515 | 515 | * |
| 516 | 516 | * @param string $email |
| 517 | - * @param array $post_ids (optional) defaults to 0 for blog posts only: array of post IDs to subscribe to blog's posts |
|
| 517 | + * @param integer $post_ids (optional) defaults to 0 for blog posts only: array of post IDs to subscribe to blog's posts |
|
| 518 | 518 | * @param bool $async (optional) Should the subscription be performed asynchronously? Defaults to true. |
| 519 | 519 | * |
| 520 | 520 | * @return true|WP_Error true on success |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | * Convenience function for grabbing options from params->options |
| 119 | 119 | * |
| 120 | 120 | * @param string $option the option to grab. |
| 121 | - * @param mixed $default (optional). |
|
| 121 | + * @param boolean $default (optional). |
|
| 122 | 122 | * @return option or $default if not set |
| 123 | 123 | * |
| 124 | 124 | * @since 4.5.0 |
@@ -710,7 +710,7 @@ discard block |
||
| 710 | 710 | /** |
| 711 | 711 | * Check the reasons to bail before we attempt to insert ads. |
| 712 | 712 | * |
| 713 | - * @return true if we should bail (don't insert ads) |
|
| 713 | + * @return boolean if we should bail (don't insert ads) |
|
| 714 | 714 | * |
| 715 | 715 | * @since 4.5.0 |
| 716 | 716 | */ |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | * @param array $args Widget args. |
| 48 | 48 | * @param array $instance The Widget instance. |
| 49 | 49 | * |
| 50 | - * @return bool|void |
|
| 50 | + * @return false|null |
|
| 51 | 51 | */ |
| 52 | 52 | public function widget( $args, $instance ) { |
| 53 | 53 | global $wordads; |
@@ -216,7 +216,6 @@ discard block |
||
| 216 | 216 | /** |
| 217 | 217 | * Inject image sizes to Jetpack REST API responses. This wraps the filter_photon_norezise_maybe_inject_sizes function. |
| 218 | 218 | * |
| 219 | - * @param array $data Attachment sizes data. |
|
| 220 | 219 | * @param int $attachment_id Attachment's post ID. |
| 221 | 220 | * |
| 222 | 221 | * @return array Attachment sizes array. |
@@ -1332,7 +1331,7 @@ discard block |
||
| 1332 | 1331 | * after ourselves without breaking anyone else's filters. |
| 1333 | 1332 | * |
| 1334 | 1333 | * @internal |
| 1335 | - * @return true |
|
| 1334 | + * @return boolean |
|
| 1336 | 1335 | */ |
| 1337 | 1336 | public function override_image_downsize_in_rest_edit_context() { |
| 1338 | 1337 | return true; |
@@ -433,6 +433,9 @@ |
||
| 433 | 433 | ); |
| 434 | 434 | } |
| 435 | 435 | |
| 436 | + /** |
|
| 437 | + * @param string $column |
|
| 438 | + */ |
|
| 436 | 439 | function _build_date_range_query( $column, $range, $where ) { |
| 437 | 440 | global $wpdb; |
| 438 | 441 | |