Make WordPress Core

Changeset 6586


Ignore:
Timestamp:
01/09/2008 08:08:59 PM (17 years ago)
Author:
ryan
Message:

Call WP::init() just before kicking the init action so that the current user is setup as early as possible. fixes #4181

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin.php

    r6582 r6586  
    1919
    2020update_category_cache();
    21 
    22 wp_get_current_user();
    2321
    2422$posts_per_page = get_option('posts_per_page');
  • trunk/wp-settings.php

    r6585 r6586  
    439439register_shutdown_function('shutdown_action_hook');
    440440
     441$wp->init();  // Sets up current user.
     442
    441443// Everything is loaded and initialized.
    442444do_action('init');
Note: See TracChangeset for help on using the changeset viewer.