Skip to content

Instantly share code, notes, and snippets.

@richardtape
Created July 19, 2012 14:02
Show Gist options
  • Save richardtape/3144142 to your computer and use it in GitHub Desktop.
Save richardtape/3144142 to your computer and use it in GitHub Desktop.
<?php global $post; $protected = ( !empty( $post->post_password ) ) ? "custom_class" : ""; ?>
<body <?php body_class( $protected ); ?>>
.
.
.
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment