Make WordPress Core

Ticket #21899: 21899.diff

File 21899.diff, 353 bytes (added by mdgl, 12 years ago)

Suggested patch using class name "protected" (this is against 3.4.2 not trunk - sorry!)

  • wp-includes/post-template.php

    old new  
    336336        }
    337337
    338338        // post requires password
     339        if ( !empty($post->post_password) )
     340                $classes[] = 'protected';
    339341        if ( post_password_required($post->ID) )
    340342                $classes[] = 'post-password-required';
    341343