Changeset 757 for branches/Ver3.0/xpressme_integration_kit/wp-content/plugins/xpressme/include/functions_for_wp_old.php
- Timestamp:
- May 23, 2011, 3:03:57 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver3.0/xpressme_integration_kit/wp-content/plugins/xpressme/include/functions_for_wp_old.php
r718 r757 1 1 <?php 2 2 // wp_login override for wp2.3 under 3 if ( !function_exists('wp_login') && version_compare($ xoops_config->wp_version,'2.3', '<')) :3 if ( !function_exists('wp_login') && version_compare($modInfo->get_wp_version(),'2.3', '<')) : 4 4 function wp_login($username, $password, $already_md5 = false) { 5 5 global $wpdb, $error; … … 43 43 44 44 // Under WP2.1 45 if (version_compare($ xoops_config->wp_version,'2.1', '<')) :45 if (version_compare($modInfo->get_wp_version(),'2.1', '<')) : 46 46 // ADD WP 2.1.0 47 47 function the_modified_date($d = '') { … … 60 60 61 61 // Under WP2.2 62 if (version_compare($ xoops_config->wp_version,'2.2', '<')):62 if (version_compare($modInfo->get_wp_version(),'2.2', '<')): 63 63 // Added WP2.2 wp_parse_args() 64 64 function wp_parse_args( $args, $defaults = '' ) { … … 95 95 96 96 // Under WP2.2.1 97 if (version_compare($ xoops_config->wp_version,'2.2.1', '<')) :97 if (version_compare($modInfo->get_wp_version(),'2.2.1', '<')) : 98 98 // Added WP2.2.1 wp_parse_str() 99 99 function wp_parse_str( $string, &$array ) { … … 107 107 108 108 // Under WP2.3 109 if (version_compare($ xoops_config->wp_version,'2.3', '<')) :109 if (version_compare($modInfo->get_wp_version(),'2.3', '<')) : 110 110 if ( !function_exists('wp_sanitize_redirect') ) : 111 111 /** … … 167 167 168 168 // Under WP2.5 169 if (version_compare($ xoops_config->wp_version,'2.5', '<')) :169 if (version_compare($modInfo->get_wp_version(),'2.5', '<')) : 170 170 // Added WP2.5 absint() 171 171 function absint( $maybeint ) { … … 192 192 193 193 // Under WP2.7 194 if (version_compare($ xoops_config->wp_version,'2.6', '<')) :194 if (version_compare($modInfo->get_wp_version(),'2.6', '<')) : 195 195 /** 196 196 * Guess the URL for the site. … … 215 215 216 216 // Under WP2.7 217 if (version_compare($ xoops_config->wp_version,'2.7', '<')) :217 if (version_compare($modInfo->get_wp_version(),'2.7', '<')) : 218 218 // Added WP2.7 separate_comments() 219 219 function &separate_comments(&$comments) { … … 346 346 347 347 // Under WP2.8 348 if (version_compare($ xoops_config->wp_version,'2.8', '<')) :348 if (version_compare($modInfo->get_wp_version(),'2.8', '<')) : 349 349 function _wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) { 350 350 $string = (string) $string;
Note: See TracChangeset
for help on using the changeset viewer.