💎 PREMIUM: Changeset/ - Full Gallery 2025

Changeset 1705405


Ignore:
Timestamp:
07/31/2017 02:14:19 AM (8 years ago)
Author:
turtlepod
Message:

Whitelist WordPress robots.txt credit to [Alex Kirk](https://alexander.kirk.at/)

Location:
fx-private-site/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • fx-private-site/trunk/fx-private-site.php

    r1492872 r1705405  
    44 * Plugin URI: http://genbumedia.com/plugins/fx-private-site/
    55 * Description: Set your site to member only. All visitor will need to login to view site.
    6  * Version: 1.2.0
     6 * Version: 1.2.1
    77 * Author: David Chandra Purnama
    88 * Author URI: http://shellcreeper.com/
     
    1919
    2020/* Set the version constant. */
    21 define( 'FX_PRIVATE_SITE_VERSION', '1.2.0' );
     21define( 'FX_PRIVATE_SITE_VERSION', '1.2.1' );
    2222
    2323/* Set the constant path to the plugin path. */
  • fx-private-site/trunk/includes/functions.php

    r1492872 r1705405  
    7272        do_action( 'fx_private_site_before_auth_redirect' );
    7373
     74        /* Always allow access to /robots.txt to allow search engine indexing management. */
     75        global $wp;
     76        if ( $wp->request === 'robots.txt' ) {
     77            return;
     78        }
     79
    7480        /* If using BuddyPress and on the register page, don't do anything. */
    7581        if ( function_exists( 'bp_is_activation_page' ) && bp_is_activation_page() ){
  • fx-private-site/trunk/readme.txt

    r1492872 r1705405  
    44Tags: private site, members only, protect rss
    55Requires at least: 4.0
    6 Tested up to: 4.6
    7 Stable tag: 1.2.0
     6Tested up to: 4.7
     7Stable tag: 1.2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4747== Changelog ==
    4848
     49= 1.2.1 - 31 July 2017 =
     50* Whitelist WordPress robots.txt credit to [Alex Kirk](https://alexander.kirk.at/)
     51
    4952= 1.2.0 - 09 September 2016 =
    5053* Better whitelist for buddypress https://github.com/justintadlock/members/issues/83#issuecomment-245237479
Note: See TracChangeset for help on using the changeset viewer.