@@ -146,6 +146,9 @@ discard block |
||
| 146 | 146 | return $this->is_private() && $this->get_cloud_site_option( 'wpcom_coming_soon' ) == 1; |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | + /** |
|
| 150 | + * @param string $option |
|
| 151 | + */ |
|
| 149 | 152 | function get_cloud_site_option( $option ) { |
| 150 | 153 | $jetpack = Jetpack::init(); |
| 151 | 154 | if ( ! method_exists( $jetpack, 'get_cloud_site_options' ) ) { |
@@ -206,6 +209,9 @@ discard block |
||
| 206 | 209 | return true; |
| 207 | 210 | } |
| 208 | 211 | |
| 212 | + /** |
|
| 213 | + * @param string $role |
|
| 214 | + */ |
|
| 209 | 215 | function current_user_can( $role ) { |
| 210 | 216 | return current_user_can( $role ); |
| 211 | 217 | } |