- Timestamp:
- Aug 11, 2009, 4:31:35 PM (15 years ago)
- Location:
- trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include
- Files:
-
- 1 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php
r350 r360 16 16 } 17 17 18 function xpress_is_wp 20(){18 function xpress_is_wp_version($operator='==',$comp_version){ 19 19 global $xoops_config; 20 21 return $xoops_config->is_wp20; 20 return version_compare($xoops_config->wp_version, $comp_version, $operator); 22 21 } 23 22 -
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/xpress_common_functions.php
r286 r360 250 250 } 251 251 } else { 252 if(xpress_is_wp 20()){252 if(xpress_is_wp_version('<','2.1')){ // Maybe, I think that it is ver2.1 or less. 253 253 if (!empty($wp->matched_query) ){ 254 254 if (strpos($wp->matched_query,'author_name') !== false ){ … … 303 303 $query = preg_replace('/\s\s+/', ' ', $query); 304 304 if (!empty($_COOKIE[$author_cookie])){ 305 if(xpress_is_wp 20()){305 if(xpress_is_wp_version('<','2.1')){ 306 306 $pattern = "WHERE.*AND\s?\(*post_author\s*="; 307 307 if ( preg_match ( "/".$pattern."/i", $query, $match ) ){
Note: See TracChangeset
for help on using the changeset viewer.