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:
parent
2508d31b81
commit
f572927353
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
|
@ -632,7 +632,7 @@ class wpdb {
|
||||||
* @return mixed The private member
|
* @return mixed The private member
|
||||||
*/
|
*/
|
||||||
public function __get( $name ) {
|
public function __get( $name ) {
|
||||||
if ( 'col_info' == $name )
|
if ( 'col_info' === $name )
|
||||||
$this->load_col_info();
|
$this->load_col_info();
|
||||||
|
|
||||||
return $this->$name;
|
return $this->$name;
|
||||||
|
|
Loading…
Reference in New Issue