WordPress.org

Make WordPress Core

Ticket #16456: 16456.patch

File 16456.patch, 678 bytes (added by SergeyBiryukov, 3 years ago)
  • wp-includes/post-template.php

     
    163163 * @param string $stripteaser Optional. Teaser content before the more text. 
    164164 */ 
    165165function the_content($more_link_text = null, $stripteaser = 0) { 
     166        global $post; 
    166167        $content = get_the_content($more_link_text, $stripteaser); 
    167         $content = apply_filters('the_content', $content); 
     168        if ( ! post_password_required($post) ) 
     169                $content = apply_filters('the_content', $content); 
    168170        $content = str_replace(']]>', ']]>', $content); 
    169171        echo $content; 
    170172}