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

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 16 03:15:46 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  |
------------------------------------------------+----------------------

Comment (by nacin):

 `!empty( $user->get( 'user_url' ) )` won't work because it's not a
 variable, but you can just drop the empty() call.

 `if ( $user->get( 'user_url' ) )`

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


More information about the wp-trac mailing list