Make WordPress Core

Ticket #14024: 14024.patch

File 14024.patch, 552 bytes (added by SergeyBiryukov, 15 years ago)
  • wp-includes/pluggable.php

     
    7474function get_currentuserinfo() {
    7575        global $current_user;
    7676
     77        if ( ! did_action( 'after_setup_theme' ) ) {
     78                _doing_it_wrong( __FUNCTION__, __( 'Current user information is only available on <code>init</code> action or later.' ), '3.3' );
     79                return false;
     80        }
     81
    7782        if ( defined('XMLRPC_REQUEST') && XMLRPC_REQUEST )
    7883                return false;
    7984