Changeset 272 for trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/functions_for_wp20.php
- Timestamp:
- Jun 9, 2009, 5:37:04 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/functions_for_wp20.php
r271 r272 262 262 } 263 263 264 // ADD WP 2.2.0265 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 else271 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.1279 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 286 264 /** 287 265 * @ignore
Note: See TracChangeset
for help on using the changeset viewer.