[wp-trac] [WordPress Trac] #21601: Introduce WP_User::has_prop_val() magic method

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 16 01:24:29 UTC 2012


#21601: Introduce WP_User::has_prop_val() magic method
------------------------------------------------+----------------------
 Reporter:  wpsmith                             |       Owner:
     Type:  defect (bug)                        |      Status:  closed
 Priority:  normal                              |   Milestone:
Component:  Users                               |     Version:
 Severity:  normal                              |  Resolution:  wontfix
 Keywords:  has-patch 2nd-opinion dev-feedback  |
------------------------------------------------+----------------------
Changes (by scribu):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 Actually, you could just do `!empty( $user->get( 'user_url' ) )`, since
 get() doesn't throw a notice for undefined properties.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21601#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list