@@ -75,6 +75,9 @@ |
||
| 75 | 75 | ); |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | + /** |
|
| 79 | + * @param string $post_type |
|
| 80 | + */ |
|
| 78 | 81 | protected function localize_initial_taxonomies( $post_type ) { |
| 79 | 82 | /** This filter is documented in jetpack/json-endpoints/class.wpcom-json-api-list-post-types-endpoint.php */ |
| 80 | 83 | if ( ! apply_filters( 'rest_api_localize_response', false ) ) { |
@@ -177,6 +177,9 @@ |
||
| 177 | 177 | return true; |
| 178 | 178 | } |
| 179 | 179 | |
| 180 | + /** |
|
| 181 | + * @param string $role |
|
| 182 | + */ |
|
| 180 | 183 | function current_user_can( $role ) { |
| 181 | 184 | return current_user_can( $role ); |
| 182 | 185 | } |