[wp-trac] Re: [WordPress Trac] #4642: Enhanced wp-mail.php

WordPress Trac wp-trac at lists.automattic.com
Sun Oct 21 19:01:23 GMT 2007


#4642: Enhanced wp-mail.php
------------------------------+---------------------------------------------
 Reporter:  lexhair           |        Owner:  Bobcat
     Type:  enhancement       |       Status:  new   
 Priority:  normal            |    Milestone:  2.4   
Component:  Administration    |      Version:  2.3   
 Severity:  normal            |   Resolution:        
 Keywords:  has-patch tested  |  
------------------------------+---------------------------------------------
Comment (by Bobcat):

 When I tried $userdata->has_cap('publish_posts'), I got "Fatal error: Call
 to undefined method stdClass::has_cap()".  I was hoping I could check the
 capabilities directly from $userdata (it's in there!).

 Are you sure you want get_user_by()?  When specifying email and login, for
 example, there are different sanitize functions that need to be called
 from within the function.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4642#comment:14>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list