WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #21601, comment 3


Ignore:
Timestamp:
08/16/2012 01:25:59 AM (6 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21601, comment 3

    initial v1  
    1 Actually, you could just do `!empty( $user->get( 'user_url' ) )`, since get() doesn't throw a notice for undefined properties.
     1Actually, since get() doesn't throw a notice for undefined properties, you could just do this:
     2
     3{{{
     4$value = $user->get( 'user_url' );
     5if ( !empty( $value ) )
     6  ...
     7}}}