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
This commit is contained in:
Scott Taylor 2015-05-28 16:34:25 +00:00
parent bece996d45
commit 2f3e567f44
2 changed files with 8 additions and 8 deletions

View File

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

View File

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