| @@ -400,15 +400,9 @@ | ||
| 400 | 400 | if ( ! $meta ) { |
| 401 | 401 | return false; |
| 402 | 402 | } |
| 403 | 403 | |
| 404 | - $post = $this->get_queried_object(); | |
| 405 | - | |
| 406 | - // Ensure the meta belongs to the queried post to prevent arbitrary meta disclosure. | |
| 407 | - if ( (int) $meta->post_id !== $post->ID ) { | |
| 408 | - return false; | |
| 409 | - } | |
| 410 | - | |
| 404 | + $post = $this->get_queried_object(); | |
| 411 | 405 | $user_uri = get_user_id( $post->post_author ); |
| 412 | 406 | |
| 413 | 407 | if ( ! $user_uri ) { |
| 414 | 408 | return false; |