[wp-trac] Re: [WordPress Trac] #5265: Possible to get "call to
undefined function" when activating a plugin
WordPress Trac
wp-trac at lists.automattic.com
Sat Oct 27 08:23:00 GMT 2007
#5265: Possible to get "call to undefined function" when activating a plugin
----------------------------+-----------------------------------------------
Reporter: Viper007Bond | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.3.2
Component: Administration | Version: 2.3
Severity: blocker | Resolution:
Keywords: needs-patch |
----------------------------+-----------------------------------------------
Comment (by Viper007Bond):
The issue is due to this line:
{{{
if ( !current_user_can('read') ) return;
}}}
`current_user_can()` is defined at the time this plugin runs, but it
appears `pluggable.php` hasn't been loaded yet.
--
Ticket URL: <http://trac.wordpress.org/ticket/5265#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list