Skip to content

Commit

Permalink
Always allow access to robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
benhuson committed Jul 4, 2013
1 parent d24777f commit a79700a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions password-protected.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ function load_plugin_textdomain() {
* Is Active?
*/
function is_active() {

// Always allow access to robots.txt
if ( is_robots() )
return false;

if ( (bool) get_option( 'password_protected_status' ) ) {
if ( ! defined( 'DONOTCACHEPAGE' ) )
define( 'DONOTCACHEPAGE', true );
Expand Down

0 comments on commit a79700a

Please sign in to comment.