Make WordPress Core


Ignore:
Timestamp:
08/30/2016 07:13:31 AM (8 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.

Props Frozzare.
Fixes #37683 for trunk.

File:
1 edited

Legend:

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

    r38314 r38439  
    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.