@@ 86-88 (lines=3) @@ | ||
83 | public static function get_status() { |
|
84 | $status = \Jetpack_Options::get_option( self::STATUS_OPTION ); |
|
85 | ||
86 | if ( false === $status || ! is_array( $status ) || empty( $status[ self::OPTION_STATUS_KEY ] ) ) { |
|
87 | return self::STATUS_UNKNOWN; |
|
88 | } |
|
89 | ||
90 | switch ( $status[ self::OPTION_STATUS_KEY ] ) { |
|
91 | case self::STATUS_OUT_OF_SYNC: |
|
@@ 134-138 (lines=5) @@ | ||
131 | public static function is_status_defined() { |
|
132 | $status = \Jetpack_Options::get_option( self::STATUS_OPTION ); |
|
133 | ||
134 | if ( false === $status || ! is_array( $status ) || empty( $status[ self::OPTION_STATUS_KEY ] ) ) { |
|
135 | return false; |
|
136 | } else { |
|
137 | return true; |
|
138 | } |
|
139 | } |
|
140 | ||
141 | } |