Ticket #20717: post_password_required_filter.patch

File post_password_required_filter.patch, 437 bytes (added by BrandonGodwin, 12 months ago)
  • wp-includes/post-template.php

     
    560560        if ( empty( $post->post_password ) ) 
    561561                return false; 
    562562 
     563        if ( ! apply_filters( 'post_password_required', true ) ) 
     564                return false; 
     565 
    563566        if ( ! isset( $_COOKIE['wp-postpass_' . COOKIEHASH] ) ) 
    564567                return true; 
    565568