- Timestamp:
- 09/17/2024 10:17:41 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r59034 r59036 505 505 } 506 506 507 if ( $post && ! empty( $request ['password'] ) ) {507 if ( $post && ! empty( $request->get_query_params()['password'] ) ) { 508 508 // Check post password, and return error if invalid. 509 if ( ! hash_equals( $post->post_password, $request ['password'] ) ) {509 if ( ! hash_equals( $post->post_password, $request->get_query_params()['password'] ) ) { 510 510 return new WP_Error( 511 511 'rest_post_incorrect_password',
Note: See TracChangeset
for help on using the changeset viewer.