@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | * |
| 46 | 46 | * @param Array $allowed_post_types Allowed post types. |
| 47 | 47 | * |
| 48 | - * @return array |
|
| 48 | + * @return string[] |
|
| 49 | 49 | */ |
| 50 | 50 | public function allow_bbpress_post_types( $allowed_post_types ) { |
| 51 | 51 | $allowed_post_types[] = 'forum'; |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | * |
| 60 | 60 | * @param Array $allowed_meta_keys Allowed meta keys. |
| 61 | 61 | * |
| 62 | - * @return array |
|
| 62 | + * @return string[] |
|
| 63 | 63 | */ |
| 64 | 64 | public function allow_bbpress_public_metadata( $allowed_meta_keys ) { |
| 65 | 65 | $allowed_meta_keys[] = '_bbp_forum_id'; |
@@ -165,6 +165,9 @@ discard block |
||
| 165 | 165 | return $this->get_atomic_cloud_site_option( 'launch-status' ); |
| 166 | 166 | } |
| 167 | 167 | |
| 168 | + /** |
|
| 169 | + * @param string $option |
|
| 170 | + */ |
|
| 168 | 171 | function get_atomic_cloud_site_option( $option ) { |
| 169 | 172 | if ( ! jetpack_is_atomic_site() ) { |
| 170 | 173 | return false; |
@@ -233,6 +236,9 @@ discard block |
||
| 233 | 236 | return false; |
| 234 | 237 | } |
| 235 | 238 | |
| 239 | + /** |
|
| 240 | + * @param string $role |
|
| 241 | + */ |
|
| 236 | 242 | function current_user_can( $role ) { |
| 237 | 243 | return current_user_can( $role ); |
| 238 | 244 | } |
@@ -235,7 +235,7 @@ |
||
| 235 | 235 | * @param string $name Template name, available in `./templates` folder. |
| 236 | 236 | * @param array $template_props Template properties. Optional. |
| 237 | 237 | * @param bool $print Render template. True as default. |
| 238 | - * @return false|string HTML markup or false. |
|
| 238 | + * @return string|null HTML markup or false. |
|
| 239 | 239 | */ |
| 240 | 240 | function render( $name, $template_props = array(), $print = true ) { |
| 241 | 241 | if ( ! strpos( $name, '.php' ) ) { |