Plugin Directory

Changeset 1877624


Ignore:
Timestamp:
05/19/2018 10:00:53 AM (8 years ago)
Author:
smyx
Message:

WPMU BUG

Location:
wptao
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wptao/tags/2.5.4/wp-functions.php

    r1856688 r1877624  
    329329    return $var;
    330330}
    331 function wptao_is_tested($wptao = '') {
    332     if (!$wptao) $wptao = get_option('wptao_options');
    333     if (!$wptao['code']['authorize_code']) {
     331function wptao_is_tested($wptao = array()) {
     332    if (!$wptao || !$wptao['code']) {
     333        $wptao = wptao_authorize_code();
     334    } else {
     335        $wptao = $wptao['code'];
     336    }
     337    if (!$wptao || !$wptao['authorize_code']) {
    334338        return true;
    335     } elseif (substr($wptao['code']['authorize_code'], -4) == 'TEST') {
    336         $time = time() - $wptao['code']['apikey'];
     339    } elseif (substr($wptao['authorize_code'], -4) == 'TEST') {
     340        $time = time() - $wptao['apikey'];
    337341        if ($time < -3600 || $time > 2592000) {
    338342            return true;
  • wptao/trunk/wp-functions.php

    r1856688 r1877624  
    329329    return $var;
    330330}
    331 function wptao_is_tested($wptao = '') {
    332     if (!$wptao) $wptao = get_option('wptao_options');
    333     if (!$wptao['code']['authorize_code']) {
     331function wptao_is_tested($wptao = array()) {
     332    if (!$wptao || !$wptao['code']) {
     333        $wptao = wptao_authorize_code();
     334    } else {
     335        $wptao = $wptao['code'];
     336    }
     337    if (!$wptao || !$wptao['authorize_code']) {
    334338        return true;
    335     } elseif (substr($wptao['code']['authorize_code'], -4) == 'TEST') {
    336         $time = time() - $wptao['code']['apikey'];
     339    } elseif (substr($wptao['authorize_code'], -4) == 'TEST') {
     340        $time = time() - $wptao['apikey'];
    337341        if ($time < -3600 || $time > 2592000) {
    338342            return true;
Note: See TracChangeset for help on using the changeset viewer.