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:
Andrew Nacin 2012-08-08 06:28:57 +00:00
parent b3fb67a97d
commit 5a45a59cb2
1 changed files with 38 additions and 2 deletions

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