Skip to content

Commit

Permalink
Merge pull request #6 from akirk/patch-4
Browse files Browse the repository at this point in the history
Always serve robots.txt
  • Loading branch information
turtlepod committed Jul 31, 2017
2 parents 414b9d0 + 1a3a873 commit a92913b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions includes/functions.php
Expand Up @@ -71,6 +71,12 @@ function fx_private_site_please_log_in() {
/* Hook */
do_action( 'fx_private_site_before_auth_redirect' );

/* Always allow access to /robots.txt to allow search engine indexing management. */
global $wp;
if ( $wp->request === 'robots.txt' ) {
return;
}

/* If using BuddyPress and on the register page, don't do anything. */
if ( function_exists( 'bp_is_activation_page' ) && bp_is_activation_page() ){
return;
Expand Down

0 comments on commit a92913b

Please sign in to comment.