XPressME Integration Kit

Trac


Ignore:
Timestamp:
May 23, 2011, 3:03:57 PM (13 years ago)
Author:
toemon
Message:

ConfigFromXoopsクラスを廃止し、modInfoクラスを使用するように変更
WP2.2以下で使用するテンプレートold_templateの廃止

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  
    11<?php 
    22// wp_login override for wp2.3 under 
    3 if ( !function_exists('wp_login') && version_compare($xoops_config->wp_version,'2.3', '<')) : 
     3if ( !function_exists('wp_login') && version_compare($modInfo->get_wp_version(),'2.3', '<')) : 
    44        function wp_login($username, $password, $already_md5 = false) { 
    55                global $wpdb, $error; 
     
    4343 
    4444// Under WP2.1 
    45 if (version_compare($xoops_config->wp_version,'2.1', '<')) : 
     45if (version_compare($modInfo->get_wp_version(),'2.1', '<')) : 
    4646        // ADD WP 2.1.0 
    4747        function the_modified_date($d = '') { 
     
    6060 
    6161// Under WP2.2 
    62 if (version_compare($xoops_config->wp_version,'2.2', '<')): 
     62if (version_compare($modInfo->get_wp_version(),'2.2', '<')): 
    6363        // Added WP2.2 wp_parse_args() 
    6464        function wp_parse_args( $args, $defaults = '' ) { 
     
    9595 
    9696// Under WP2.2.1 
    97 if (version_compare($xoops_config->wp_version,'2.2.1', '<')) : 
     97if (version_compare($modInfo->get_wp_version(),'2.2.1', '<')) : 
    9898        // Added WP2.2.1 wp_parse_str() 
    9999        function wp_parse_str( $string, &$array ) { 
     
    107107 
    108108// Under WP2.3 
    109 if (version_compare($xoops_config->wp_version,'2.3', '<')) : 
     109if (version_compare($modInfo->get_wp_version(),'2.3', '<')) : 
    110110        if ( !function_exists('wp_sanitize_redirect') ) : 
    111111        /** 
     
    167167 
    168168// Under WP2.5 
    169 if (version_compare($xoops_config->wp_version,'2.5', '<')) : 
     169if (version_compare($modInfo->get_wp_version(),'2.5', '<')) : 
    170170        // Added WP2.5 absint() 
    171171        function absint( $maybeint ) { 
     
    192192 
    193193// Under WP2.7 
    194 if (version_compare($xoops_config->wp_version,'2.6', '<')) : 
     194if (version_compare($modInfo->get_wp_version(),'2.6', '<')) : 
    195195        /** 
    196196         * Guess the URL for the site. 
     
    215215 
    216216// Under WP2.7 
    217 if (version_compare($xoops_config->wp_version,'2.7', '<')) : 
     217if (version_compare($modInfo->get_wp_version(),'2.7', '<')) : 
    218218        // Added WP2.7 separate_comments() 
    219219        function &separate_comments(&$comments) { 
     
    346346 
    347347// Under WP2.8 
    348 if (version_compare($xoops_config->wp_version,'2.8', '<')) : 
     348if (version_compare($modInfo->get_wp_version(),'2.8', '<')) : 
    349349        function _wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) { 
    350350                $string = (string) $string; 
Note: See TracChangeset for help on using the changeset viewer.