From 2f3e567f44e7bc335b6795713ae970b4f37117cd Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 28 May 2015 16:34:25 +0000 Subject: [PATCH] Alter visibility of some properties in `wpdb`: `num_queries` is accessed publicly in core. `num_rows` is accessed publicly in `ms-settings.php`. `insert_id` is accessed publicly in core. `prefix` is accessed publicly in `upgrade.php` and `capabilities.php`. See #32444. Built from https://develop.svn.wordpress.org/trunk@32640 git-svn-id: http://core.svn.wordpress.org/trunk@32610 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-includes/wp-db.php | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index e25fc2ba31..9db448de78 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.3-alpha-32639'; +$wp_version = '4.3-alpha-32640'; /** * 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 23bb034578..c26da125f7 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -84,19 +84,19 @@ class wpdb { * Amount of queries made * * @since 1.2.0 - * @access private + * @access public * @var int */ - var $num_queries = 0; + public $num_queries = 0; /** * Count of rows returned by previous query * * @since 0.71 - * @access private + * @access public * @var int */ - var $num_rows = 0; + public $num_rows = 0; /** * Count of affected rows by previous query @@ -114,7 +114,7 @@ class wpdb { * @access public * @var int */ - var $insert_id = 0; + public $insert_id = 0; /** * Last query made @@ -216,10 +216,10 @@ class wpdb { * security precautions. * * @since 2.5.0 - * @access private + * @access public * @var string */ - var $prefix = ''; + public $prefix = ''; /** * WordPress base table prefix.