From f572927353a5b9779e608249d64afd9f060cb46a Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Sun, 9 Nov 2014 12:04:23 +0000 Subject: [PATCH] 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 --- wp-includes/version.php | 2 +- wp-includes/wp-db.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index b8a4b8279d..2025ce6e5c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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. diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index d0ee6ce3e5..2e8b4079fe 100644 --- a/wp-includes/wp-db.php +++ b/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;