Make WordPress Core

Changeset 38440


Ignore:
Timestamp:
08/30/2016 07:16:36 AM (10 years ago)
Author:
pento
Message:

Database: Ensure that variables are defined correctly.

There were some cases where some local variables in wpdb::init_charset() could be undefined when they were used.

Merge of [38439] to the 4.6 branch.

Props Frozzare.
Fixes #37683.

Location:
branches/4.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.6

  • branches/4.6/src/wp-includes/wp-db.php

    r38133 r38440  
    735735         */
    736736        public function init_charset() {
     737                $charset = '';
     738                $collate = '';
     739
    737740                if ( function_exists('is_multisite') && is_multisite() ) {
    738741                        $charset = 'utf8';
Note: See TracChangeset for help on using the changeset viewer.