WordPress.org

Make WordPress Core

Changeset 32904


Ignore:
Timestamp:
06/22/15 20:43:58 (2 years ago)
Author:
wonderboymusic
Message:

After [32884], update the default value for comment_shortcuts.

Props dlh, rachelbaker, DrewAPicture.
Fixes #31588.

Location:
trunk
Files:
2 edited

Legend:

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

    r32897 r32904  
    20242024    $meta['rich_editing'] = empty( $userdata['rich_editing'] ) ? 'true' : $userdata['rich_editing']; 
    20252025 
    2026     $meta['comment_shortcuts'] = empty( $userdata['comment_shortcuts'] ) ? 'false' : $userdata['comment_shortcuts']; 
     2026    $meta['comment_shortcuts'] = empty( $userdata['comment_shortcuts'] ) || 'false' === $userdata['comment_shortcuts'] ? 'false' : 'true'; 
    20272027 
    20282028    $admin_color = empty( $userdata['admin_color'] ) ? 'fresh' : $userdata['admin_color']; 
  • trunk/tests/phpunit/tests/user.php

    r31963 r32904  
    309309        $user_data = array( 'ID' => $user_id, 'use_ssl' => 1, 'show_admin_bar_front' => 1, 
    310310                           'rich_editing' => 1, 'first_name' => 'first', 'last_name' => 'last', 
    311                            'nickname' => 'nick', 'comment_shortcuts' => 1, 'admin_color' => 'classic', 
     311                           'nickname' => 'nick', 'comment_shortcuts' => 'true', 'admin_color' => 'classic', 
    312312                           'description' => 'describe' ); 
    313313        wp_update_user( $user_data ); 
Note: See TracChangeset for help on using the changeset viewer.