Changeset 1877624
- Timestamp:
- 05/19/2018 10:00:53 AM (8 years ago)
- Location:
- wptao
- Files:
-
- 2 edited
-
tags/2.5.4/wp-functions.php (modified) (1 diff)
-
trunk/wp-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wptao/tags/2.5.4/wp-functions.php
r1856688 r1877624 329 329 return $var; 330 330 } 331 function wptao_is_tested($wptao = '') { 332 if (!$wptao) $wptao = get_option('wptao_options'); 333 if (!$wptao['code']['authorize_code']) { 331 function 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']) { 334 338 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']; 337 341 if ($time < -3600 || $time > 2592000) { 338 342 return true; -
wptao/trunk/wp-functions.php
r1856688 r1877624 329 329 return $var; 330 330 } 331 function wptao_is_tested($wptao = '') { 332 if (!$wptao) $wptao = get_option('wptao_options'); 333 if (!$wptao['code']['authorize_code']) { 331 function 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']) { 334 338 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']; 337 341 if ($time < -3600 || $time > 2592000) { 338 342 return true;
Note: See TracChangeset
for help on using the changeset viewer.