• I do need to run a cron job every 15min even if the site maintenance mode is activated.
    Will it be ok to test argv[0] if REQUEST_URI is empty?

    file: wp-manintenance-mode.php
    line: 613

    foreach ($this->plugin_settings[‘general’][‘exclude’] as $item) {
    if ((!empty($_SERVER[‘REMOTE_ADDR’]) && strstr($_SERVER[‘REMOTE_ADDR’], $item)) || (!empty($_SERVER[‘REQUEST_URI’]) && strstr($_SERVER[‘REQUEST_URI’], $item)) /*SPRO*/ || (empty($_SERVER[‘REQUEST_URI’]) && isset($_SERVER[‘argv’]) && isset($_SERVER[‘argv’][0]) && !empty($_SERVER[‘argv’][0]) && strstr($_SERVER[‘argv’][0], $item))/*SPRO*/) {
    $is_excluded = true;
    break;

    https://www.ads-software.com/plugins/wp-maintenance-mode/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Allow access to site from PHP CLI’ is closed to new replies.