Make WordPress Core

Ticket #46296: 46296.diff

File 46296.diff, 429 bytes (added by Presskopp, 3 years ago)
  • src/wp-includes/class-wp.php

     
    760760                } else {
    761761                        status_header( 200 );
    762762                }
     763               
     764                $post_id = $wp_query->post->ID;
     765                $post = get_post($post_id);
     766
     767                if ( !empty( $post->post_password ) ) {
     768                        status_header( 403 );
     769                }
    763770        }
    764771
    765772        /**