@@ -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(); |
@@ -652,6 +652,9 @@ discard block |
||
652 | 652 | return $comment; |
653 | 653 | } |
654 | 654 | |
655 | + /** |
|
656 | + * @param string $when |
|
657 | + */ |
|
655 | 658 | private function schedule_sync( $when ) { |
656 | 659 | wp_schedule_single_event( strtotime( $when ), 'jetpack_sync_actions' ); |
657 | 660 | } |
@@ -818,6 +821,9 @@ discard block |
||
818 | 821 | update_option( self::CALLABLES_CHECKSUM_OPTION_NAME , $callable_checksums ); |
819 | 822 | } |
820 | 823 | |
824 | + /** |
|
825 | + * @param integer $new_sum |
|
826 | + */ |
|
821 | 827 | private function still_valid_checksum( $sums_to_check, $name, $new_sum ) { |
822 | 828 | if ( isset( $sums_to_check[ $name ] ) && $sums_to_check[ $name ] === $new_sum ) { |
823 | 829 | return true; |