@@ -4,16 +4,29 @@ |
||
4 | 4 | require_once dirname( __FILE__ ) . '/class.json-api-site-base.php'; |
5 | 5 | |
6 | 6 | abstract class Abstract_Jetpack_Site extends SAL_Site { |
7 | + |
|
8 | + /** |
|
9 | + * @param string $name |
|
10 | + */ |
|
7 | 11 | abstract protected function get_constant( $name ); |
8 | 12 | |
13 | + /** |
|
14 | + * @param string $feature_name |
|
15 | + */ |
|
9 | 16 | abstract protected function current_theme_supports( $feature_name ); |
10 | 17 | |
18 | + /** |
|
19 | + * @param string $feature_name |
|
20 | + */ |
|
11 | 21 | abstract protected function get_theme_support( $feature_name ); |
12 | 22 | |
13 | 23 | abstract protected function get_jetpack_version(); |
14 | 24 | |
15 | 25 | abstract protected function get_updates(); |
16 | 26 | |
27 | + /** |
|
28 | + * @return string |
|
29 | + */ |
|
17 | 30 | abstract protected function main_network_site(); |
18 | 31 | |
19 | 32 | abstract protected function wp_version(); |
@@ -172,6 +172,9 @@ |
||
172 | 172 | } |
173 | 173 | } |
174 | 174 | |
175 | + /** |
|
176 | + * @param string $when |
|
177 | + */ |
|
175 | 178 | private function schedule_sync( $when ) { |
176 | 179 | wp_schedule_single_event( strtotime( $when ), 'jetpack_sync_actions' ); |
177 | 180 | } |
@@ -36,6 +36,9 @@ |
||
36 | 36 | return self::$initialized_modules; |
37 | 37 | } |
38 | 38 | |
39 | + /** |
|
40 | + * @param string $module_name |
|
41 | + */ |
|
39 | 42 | public static function get_module( $module_name ) { |
40 | 43 | foreach( self::get_modules() as $module ) { |
41 | 44 | if ( $module->name() === $module_name ) { |
@@ -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 |