@@ -105,7 +105,7 @@ |
||
| 105 | 105 | /** |
| 106 | 106 | * Returns an instance of the Jetpack object. |
| 107 | 107 | * |
| 108 | - * @return Automattic\Jetpack |
|
| 108 | + * @return Jetpack |
|
| 109 | 109 | */ |
| 110 | 110 | public function get_jetpack() { |
| 111 | 111 | return Jetpack::init(); |
@@ -62,6 +62,10 @@ |
||
| 62 | 62 | return $query->is_main_query() && $query->is_search(); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | + /** |
|
| 66 | + * @param double $duration |
|
| 67 | + * @param boolean $was_jetpack_search |
|
| 68 | + */ |
|
| 65 | 69 | private function record_query_time( $duration, $was_jetpack_search ) { |
| 66 | 70 | $this->stats[] = array( $was_jetpack_search, (int) ( $duration * 1000 ) ); |
| 67 | 71 | } |
@@ -228,7 +228,7 @@ |
||
| 228 | 228 | * |
| 229 | 229 | * @param string $notify_moderator The value of the moderation_notify option. |
| 230 | 230 | * @param int $comment_id Comment ID. |
| 231 | - * @return boolean Returns false to shortcircuit the execution of wp_notify_moderator |
|
| 231 | + * @return string|false Returns false to shortcircuit the execution of wp_notify_moderator |
|
| 232 | 232 | */ |
| 233 | 233 | function jetpack_notify_moderator( $notify_moderator, $comment_id ) { |
| 234 | 234 | |