Make WordPress Core


Ignore:
Timestamp:
04/25/2013 07:28:33 AM (11 years ago)
Author:
markjaquith
Message:

Screen option for Post Format UI.

props nacin. see #23930.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/user.php

    r24056 r24092  
    276276    if ( !$global )
    277277        $option_name = $wpdb->prefix . $option_name;
    278 
    279     // For backward compatibility. See differences between update_user_meta() and deprecated update_usermeta().
    280     // http://core.trac.wordpress.org/ticket/13088
    281     if ( is_null( $newvalue ) || is_scalar( $newvalue ) && empty( $newvalue ) )
    282         return delete_user_meta( $user_id, $option_name );
    283278
    284279    return update_user_meta( $user_id, $option_name, $newvalue );
Note: See TracChangeset for help on using the changeset viewer.