| @@ -331,19 +331,8 @@ | ||
| 331 | 331 | return $endpoints; |
| 332 | 332 | } |
| 333 | 333 | |
| 334 | 334 | /** |
| 335 | - * Block author query parameter enumeration | |
| 336 | - */ | |
| 337 | - public function block_author_enumeration() { | |
| 338 | - // phpcs:ignore WordPress.Security.NonceVerification.Recommended | |
| 339 | - if ( ! is_admin() && isset( $_GET['author'] ) ) { | |
| 340 | - wp_safe_redirect( home_url(), 301 ); | |
| 341 | - exit; | |
| 342 | - } | |
| 343 | - } | |
| 344 | - | |
| 345 | - /** | |
| 346 | 335 | * Get REST API security status |
| 347 | 336 | * |
| 348 | 337 | * @return array |
| 349 | 338 | */ |