WordPress.org

Make WordPress Core

Ticket #14024: 14024.2.patch

File 14024.2.patch, 526 bytes (added by SergeyBiryukov, 3 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.4' ); 
     79 
    7780        if ( defined('XMLRPC_REQUEST') && XMLRPC_REQUEST ) 
    7881                return false;