Plugin Directory

Changeset 2299353


Ignore:
Timestamp:
05/06/2020 01:41:34 PM (6 years ago)
Author:
ajferg
Message:

Check for WP CLI before running

File:
1 edited

Legend:

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

    r1289672 r2299353  
    44Plugin URI:     http://www.fergusweb.net/software/token-access/
    55Description:    Limit access to the site to those with a cookie token.  Visitors without the cookie see a customisable "coming soon" style of page.  To remove protection, simply disable this plugin.
    6 Version:        1.4
     6Version:        1.5
    77Author:         Anthony Ferguson
    88Author URI:     http://www.fergusweb.net
     
    8888     */
    8989    function hijack_public_pages() {
     90        // If WP CLI don't run!
     91        if (defined('WP_CLI'))  return false;
    9092        // If admin or login, don't run this.
    9193        if (is_admin()) return;
Note: See TracChangeset for help on using the changeset viewer.