XPressME Integration Kit

Trac


Ignore:
Timestamp:
Jun 9, 2009, 5:37:04 PM (15 years ago)
Author:
toemon
Message:

#130 カスタムテンプレートタグでwp_parse_argsを利用
get_xpress_excerpt_contents()
xpress_the_content()
を除き修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/functions_for_wp20.php

    r271 r272  
    262262} 
    263263 
    264 // ADD WP 2.2.0 
    265 function wp_parse_args( $args, $defaults = '' ) { 
    266         if ( is_object( $args ) ) 
    267                 $r = get_object_vars( $args ); 
    268         elseif ( is_array( $args ) ) 
    269                 $r =& $args; 
    270         else 
    271                 wp_parse_str( $args, $r ); 
    272  
    273         if ( is_array( $defaults ) ) 
    274                 return array_merge( $defaults, $r ); 
    275         return $r; 
    276 } 
    277  
    278 // ADD WP 2.2.1 
    279 function wp_parse_str( $string, &$array ) { 
    280         parse_str( $string, $array ); 
    281         if ( get_magic_quotes_gpc() ) 
    282                 $array = stripslashes_deep( $array ); 
    283         $array = apply_filters( 'wp_parse_str', $array ); 
    284 } 
    285  
    286264/** 
    287265 * @ignore 
Note: See TracChangeset for help on using the changeset viewer.