Plugin Directory

Changeset 2518093


Ignore:
Timestamp:
04/20/2021 07:11:58 AM (5 years ago)
Author:
ajferg
Message:

1.7.1 update - placeholder was appearing on wp-login.php page too.

Location:
token-access
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • token-access/trunk/plugin.php

    r2516089 r2518093  
    44 * Plugin URI:  http://www.fergusweb.net/software/token-access/
    55 * Description: Limit access to the site to those with a cookie token. Visitors without the cookie see a 'coming soon' style of page. To remove protection, simply disable this plugin. The 'coming soon' page can be customised via Reading settings.
    6  * Version:     1.7
     6 * Version:     1.7.1
    77 * Author:      Anthony Ferguson
    88 * Author URI:  http://www.fergusweb.net
     
    6767        // If admin area, don't run this.
    6868        if ( is_admin() ) {
     69            return false;
     70        }
     71
     72        // If login page, don't run this.
     73        if ( $GLOBALS['pagenow'] === 'wp-login.php' ) {
    6974            return false;
    7075        }
  • token-access/trunk/readme.txt

    r2516091 r2518093  
    44Requires at least:  3.0
    55Tested up to:       5.7
    6 Stable tag:         1.7
     6Stable tag:         1.7.1
    77
    88Limit access to the site to those with a cookie token.  Visitors without the cookie see a customisable "coming soon" style of page.
     
    2929== Changelog ==
    3030
     31= 1.7.1 =
     32* Fix: It was showing the placeholder on the wp-login.php page too.
     33
    3134= 1.7 =
    3235* Rewrote plugin to meet code standards.
Note: See TracChangeset for help on using the changeset viewer.