Ticket #10667: plug-objects.diff
| File plug-objects.diff, 667 bytes (added by , 16 years ago) |
|---|
-
wp-settings.php
193 193 * @global object $wp_the_query 194 194 * @since 2.0.0 195 195 */ 196 $wp_the_query =& new WP_Query(); 196 if ( isset($WP_Query) && class_exists($WP_Query) ) 197 $wp_the_query =& new $WP_Query(); 198 else 199 $wp_the_query =& new WP_Query(); 197 200 198 201 /** 199 202 * Holds the reference to @see $wp_the_query … … 215 218 * @global object $wp 216 219 * @since 2.0.0 217 220 */ 218 $wp =& new WP(); 221 if ( isset($WP) && class_exists($WP) ) 222 $wp =& new $WP(); 223 else 224 $wp =& new WP(); 219 225 220 226 /** 221 227 * WordPress Widget Factory Object