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: http://core.svn.wordpress.org/trunk@21473 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-08-08 06:28:57 +00:00
parent 1425762319
commit f02bacd9f1

View File

@ -445,10 +445,46 @@ class wpdb {
* Database Username
*
* @since 2.9.0
* @access private
* @access protected
* @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