Make WordPress Core

Ticket #41426: 41426.3.patch

File 41426.3.patch, 576 bytes (added by mp518, 8 years ago)

added class

  • wp-includes/post-template.php

     
    380380        if ( empty( $post ) ) {
    381381                return '';
    382382        }
    383 
     383       
    384384        if ( post_password_required( $post ) ) {
    385                 return __( 'There is no excerpt because this is a protected post.' );
     385                echo '<span class="post-password-state">' . __( 'There is no excerpt because this is a protected post.' ) . '</span>';
     386                return;
    386387        }
    387388
    388389        /**