mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-12 13:44:21 +01:00
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:
parent
bece996d45
commit
2f3e567f44
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
@ -84,19 +84,19 @@ class wpdb {
|
|||||||
* Amount of queries made
|
* Amount of queries made
|
||||||
*
|
*
|
||||||
* @since 1.2.0
|
* @since 1.2.0
|
||||||
* @access private
|
* @access public
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
var $num_queries = 0;
|
public $num_queries = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Count of rows returned by previous query
|
* Count of rows returned by previous query
|
||||||
*
|
*
|
||||||
* @since 0.71
|
* @since 0.71
|
||||||
* @access private
|
* @access public
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
var $num_rows = 0;
|
public $num_rows = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Count of affected rows by previous query
|
* Count of affected rows by previous query
|
||||||
@ -114,7 +114,7 @@ class wpdb {
|
|||||||
* @access public
|
* @access public
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
var $insert_id = 0;
|
public $insert_id = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Last query made
|
* Last query made
|
||||||
@ -216,10 +216,10 @@ class wpdb {
|
|||||||
* security precautions.
|
* security precautions.
|
||||||
*
|
*
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* @access private
|
* @access public
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
var $prefix = '';
|
public $prefix = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* WordPress base table prefix.
|
* WordPress base table prefix.
|
||||||
|
Loading…
Reference in New Issue
Block a user