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

git-svn-id: https://develop.svn.wordpress.org/trunk@30292 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast 2014-11-09 12:03:31 +00:00
parent 218924d9ee
commit 3b3a33b583
1 changed files with 1 additions and 1 deletions

View File

@ -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;