- Timestamp:
- Aug 11, 2009, 4:31:35 PM (15 years ago)
- Location:
- trunk/xpressme_integration_kit/wp-content/plugins/xpressme
- Files:
-
- 1 added
- 1 deleted
- 3 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 ) ){ -
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme.php
r349 r360 20 20 21 21 require_once dirname( __FILE__ ).'/include/pluggable-override.php' ; 22 if ($xoops_config->is_wp20) 23 require_once dirname( __FILE__ ).'/include/functions_for_wp20.php' ; 22 require_once dirname( __FILE__ ).'/include/functions_for_wp_old.php' ; 24 23 25 24 function my_plugin_menu() … … 98 97 add_filter('query','xpress_query_filter'); 99 98 //add_action("init", "xpress_set_author_cookie"); 100 if(xpress_is_wp 20()){99 if(xpress_is_wp_version('<','2.1')){ 101 100 // It is called before parse_request() makes $GET. 102 101 add_action("query_vars", "xpress_set_author_cookie");
Note: See TracChangeset
for help on using the changeset viewer.