WordPress.org

Make WordPress Core

Changeset 6233


Ignore:
Timestamp:
10/12/2007 09:47:34 PM (11 years ago)
Author:
ryan
Message:

Fix category assigment during link import. fixes #5107 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r6223 r6233  
    737737
    738738function wp( $query_vars = '' ) {
    739     global $wp;
     739    global $wp, $wp_query, $wp_the_query;
    740740    $wp->main( $query_vars );
     741
     742    if( !isset($wp_the_query) )
     743        $wp_the_query = $wp_query;
    741744}
    742745
Note: See TracChangeset for help on using the changeset viewer.