@@ -281,8 +281,6 @@ |
||
| 281 | 281 | /** |
| 282 | 282 | * Builds map display HTML code from the supplied latitude and longitude. |
| 283 | 283 | * |
| 284 | - * @param float $lat Map Latitude |
|
| 285 | - * @param float $lon Map Longitude |
|
| 286 | 284 | * |
| 287 | 285 | * @return string HTML of the map |
| 288 | 286 | */ |
@@ -401,6 +401,10 @@ discard block |
||
| 401 | 401 | } |
| 402 | 402 | |
| 403 | 403 | // functions |
| 404 | + |
|
| 405 | + /** |
|
| 406 | + * @param string $name |
|
| 407 | + */ |
|
| 404 | 408 | public function get_callable( $name ) { |
| 405 | 409 | $value = get_option( 'jetpack_' . $name ); |
| 406 | 410 | |
@@ -640,6 +644,9 @@ discard block |
||
| 640 | 644 | return $histogram; |
| 641 | 645 | } |
| 642 | 646 | |
| 647 | + /** |
|
| 648 | + * @param string|null $id_column |
|
| 649 | + */ |
|
| 643 | 650 | private function table_checksum( $table, $columns, $id_column, $where_sql = '1=1', $min_id = null, $max_id = null ) { |
| 644 | 651 | global $wpdb; |
| 645 | 652 | |
@@ -1404,7 +1404,7 @@ |
||
| 1404 | 1404 | /** |
| 1405 | 1405 | * Migration routine for moving safecss from wp_options to wp_posts to support revisions |
| 1406 | 1406 | * |
| 1407 | - * @return void |
|
| 1407 | + * @return false|null |
|
| 1408 | 1408 | */ |
| 1409 | 1409 | static function upgrade() { |
| 1410 | 1410 | $css = get_option( 'safecss' ); |
@@ -107,6 +107,9 @@ |
||
| 107 | 107 | $this->enqueue_action( current_filter(), func_get_args(), $this->sync_queue ); |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | + /** |
|
| 111 | + * @param Jetpack_Sync_Queue $queue |
|
| 112 | + */ |
|
| 110 | 113 | function enqueue_action( $current_filter, $args, $queue ) { |
| 111 | 114 | |
| 112 | 115 | /** |
@@ -50,6 +50,9 @@ discard block |
||
| 50 | 50 | return (double) get_option( self::NEXT_SYNC_TIME_OPTION_NAME, 0 ); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | + /** |
|
| 54 | + * @param integer $time |
|
| 55 | + */ |
|
| 53 | 56 | public function set_next_sync_time( $time ) { |
| 54 | 57 | return update_option( self::NEXT_SYNC_TIME_OPTION_NAME, $time, true ); |
| 55 | 58 | } |
@@ -81,6 +84,9 @@ discard block |
||
| 81 | 84 | return $full_sync_result || $sync_result; |
| 82 | 85 | } |
| 83 | 86 | |
| 87 | + /** |
|
| 88 | + * @param Jetpack_Sync_Queue $queue |
|
| 89 | + */ |
|
| 84 | 90 | public function do_sync_for_queue( $queue ) { |
| 85 | 91 | |
| 86 | 92 | do_action( 'jetpack_sync_before_send_queue_' . $queue->id ); |
@@ -170,6 +170,9 @@ |
||
| 170 | 170 | $listener->get_full_sync_queue()->reset(); |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | + /** |
|
| 174 | + * @param integer $default |
|
| 175 | + */ |
|
| 173 | 176 | private function get_status_option( $option, $default = null ) { |
| 174 | 177 | $prefix = self::STATUS_OPTION_PREFIX; |
| 175 | 178 | |