Declare, document, and protect $dbuser, $dbpassword, $dbname, $dbhost and $dbh in wpdb.
These properties, while protected, are still accessible thanks to the magic getter added in [21472]. props pento, nvartolomei, joelhardi. fixes #18510. git-svn-id: https://develop.svn.wordpress.org/trunk@21473 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b3fb67a97d
commit
5a45a59cb2
@ -445,10 +445,46 @@ class wpdb {
|
|||||||
* Database Username
|
* Database Username
|
||||||
*
|
*
|
||||||
* @since 2.9.0
|
* @since 2.9.0
|
||||||
* @access private
|
* @access protected
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
var $dbuser;
|
protected $dbuser;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Password
|
||||||
|
*
|
||||||
|
* @since 3.5.0
|
||||||
|
* @access protected
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $dbpassword;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Name
|
||||||
|
*
|
||||||
|
* @since 3.5.0
|
||||||
|
* @access protected
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $dbname;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Host
|
||||||
|
*
|
||||||
|
* @since 3.5.0
|
||||||
|
* @access protected
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $dbhost;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database Handle
|
||||||
|
*
|
||||||
|
* @since 3.5.0
|
||||||
|
* @access protected
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $dbh;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A textual description of the last query/get_row/get_var call
|
* A textual description of the last query/get_row/get_var call
|
||||||
|
Loading…
Reference in New Issue
Block a user