[wp-trac] [WordPress Trac] #20372: WP_User::exists()
WordPress Trac
wp-trac at lists.automattic.com
Sat Apr 7 16:38:05 UTC 2012
#20372: WP_User::exists()
------------------------------+------------------
Reporter: markjaquith | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.4
Component: Users | Version:
Severity: normal | Resolution:
Keywords: has-patch commit |
------------------------------+------------------
Comment (by duck_):
Replying to [comment:3 nacin]:
> Not sure what's going on, but seeing this on WP.org:
>
> {{{
> Call to a member function exists() on a non-object
> File: wp-includes/capabilities.php
> Line: 1371
> Source: http://cn.wordpress.org/xmlrpc.php
> }}}
This happens on Multisite installations. ms_site_check() is called in wp-
settings.php and it tries to use is_super_admin() which gets `NULL` from
wp_get_current_user() since this is an XML-RPC request.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20372#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list