Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #19324, comment 21


Ignore:
Timestamp:
09/17/2013 03:16:50 AM (10 years ago)
Author:
ticoombs
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19324, comment 21

    initial v1  
    1 Moving back to Un-resolved state.
    2 
    3 Current 3.6.1 currently does not have the required fix.
    4 
    5 Proposed fixes,
    6 wp-includes/load.php
    7 {{{
    8 334c334
    9 <       $wpdb = new wpdb( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST, NEWLINK, MYSQL_CLIENT_FLAGS );
    10 ---
    11 >       $wpdb = new wpdb( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST );
    12 
    13 }}}
    14 wp-includes/wp-db.php
    15 {{{
    16 479,495d478
    17 <       /**
    18 <          * Database Client Flags 
    19 <          *
    20 <          * @since 3.6.x
    21 <          * @access protected
    22 <          * @var string
    23 <          */
    24 <         protected $client_flags; 
    25 <
    26 <       /**
    27 <          * Database Client Flags 
    28 <          *
    29 <          * @since 3.6.x
    30 <          * @access protected
    31 <          * @var string
    32 <          */
    33 <         protected $new_link;
    34 544c536
    35 <       function __construct( $dbuser, $dbpassword, $dbname, $dbhost, $new_link, $client_flags ) {
    36 556,558c548
    37 <
    38 <               $this->new_link = $new_link;
    39 <               $this->client_flags = $client_flags;
    40 1163c1152
    41 <                       $this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $this->new_link, $this->client_flags );
    42 1165c1154
    43 <                       $this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $this->new_link, $this->client_flags );
    44 }}}
    45 
    46 Usage:
    47 wp-config.php
    48 {{{
    49 33,36d32
    50 < /** Database SSL Settings */
    51 < define('MYSQL_CLIENT_FLAGS', MYSQL_CLIENT_SSL);
    52 < define('NEWLINK', true );
    53 }}}
    54 
    55 (If this is in the wrong place, please direct me to the correct place, #firstimesubmitter)
    56 The problem with the current version is that, it will always return 0 for MYSQL_CLIENT_FLAGS, even if you define it in wp-config.php. Same goes for NEWLINK.
     1- redacted as relized it was already fixed. -