WPDB's `__get()` function should perform strict comparisons against member names

Built from https://develop.svn.wordpress.org/trunk@30292


git-svn-id: http://core.svn.wordpress.org/trunk@30291 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2014-11-09 12:04:23 +00:00
parent 2508d31b81
commit f572927353
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.1-alpha-30291';
$wp_version = '4.1-alpha-30292';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -632,7 +632,7 @@ class wpdb {
* @return mixed The private member
*/
public function __get( $name ) {
if ( 'col_info' == $name )
if ( 'col_info' === $name )
$this->load_col_info();
return $this->$name;