From 3b3a33b58321b9a28189a54188180e7997dd4f79 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Sun, 9 Nov 2014 12:03:31 +0000 Subject: [PATCH] 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 --- src/wp-includes/wp-db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/wp-db.php b/src/wp-includes/wp-db.php index d0ee6ce3e5..2e8b4079fe 100644 --- a/src/wp-includes/wp-db.php +++ b/src/wp-includes/wp-db.php @@ -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;