pyrebqa

Php code posted
created at 01 Apr 12:05, updated at 02 Apr 05:34

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
global $wpdb;
define('WPSC_VERSION', '3.7');
define('WPSC_MINOR_VERSION', '46');

define('WPSC_PRESENTABLE_VERSION', '3.7.5.3');

define('WPSC_DEBUG', false);
define('WPSC_GATEWAY_DEBUG', false);

$v1 = str_replace(array('_','-','+'), '.', strtolower($wp_version));
$v1 = str_replace(array('alpha','beta','gamma'), array('a','b','g'), $v1);
$v1 = preg_split("/([a-z]+)/i",$v1,-1, PREG_SPLIT_DELIM_CAPTURE);
array_walk($v1, create_function('&$v', '$v = trim($v,". ");'));

define('IS_WP25', version_compare($v1[0], '2.5', '>='));
define('IS_WP27', version_compare($v1[0], '2.7', '>='));
602 Bytes in 3 ms with coderay