[wp-trac] [WordPress Trac] #21899: Missing class identifier for password protected posts
WordPress Trac
noreply at wordpress.org
Sat Sep 19 11:16:11 UTC 2015
#21899: Missing class identifier for password protected posts
-------------------------------+-----------------------
Reporter: mdgl | Owner: obenland
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.4
Component: Posts, Post Types | Version: 3.4.2
Severity: normal | Resolution:
Keywords: has-patch | Focuses: template
-------------------------------+-----------------------
Comment (by obenland):
Looking at it a bit more I changed my mind about the three classes.
`visibility-private` and `visibility-public` would be duplicates of
`status-private` and `status-publish` which doesn't really add much value.
[attachment:21899.3.diff] just adds one class `post-password-protected` in
case the password is set but not required (to go with `post-password-
required`). It also splits out the post thumbnail check to make it easier
to grok.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21899#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list