Make WordPress Core

Ticket #60299: 60299.patch

File 60299.patch, 695 bytes (added by prettyboymp, 4 months ago)

Set $meta['use_ssl'] to string value.

  • src/wp-includes/user.php

     
    23162316        $admin_color         = empty( $userdata['admin_color'] ) ? 'fresh' : $userdata['admin_color'];
    23172317        $meta['admin_color'] = preg_replace( '|[^a-z0-9 _.\-@]|i', '', $admin_color );
    23182318
    2319         $meta['use_ssl'] = empty( $userdata['use_ssl'] ) ? 0 : (bool) $userdata['use_ssl'];
     2319        $meta['use_ssl'] = empty( $userdata['use_ssl'] ) || ! $userdata['use_ssl'] ? '0' : '1';
    23202320
    23212321        $meta['show_admin_bar_front'] = empty( $userdata['show_admin_bar_front'] ) ? 'true' : $userdata['show_admin_bar_front'];
    23222322