Make WordPress Core

Changeset 21473


Ignore:
Timestamp:
08/08/2012 06:28:57 AM (12 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r21472 r21473  
    446446     *
    447447     * @since 2.9.0
    448      * @access private
    449      * @var string
    450      */
    451     var $dbuser;
     448     * @access protected
     449     * @var string
     450     */
     451    protected $dbuser;
     452
     453    /**
     454     * Database Password
     455     *
     456     * @since 3.5.0
     457     * @access protected
     458     * @var string
     459     */
     460    protected $dbpassword;
     461
     462    /**
     463     * Database Name
     464     *
     465     * @since 3.5.0
     466     * @access protected
     467     * @var string
     468     */
     469    protected $dbname;
     470
     471    /**
     472     * Database Host
     473     *
     474     * @since 3.5.0
     475     * @access protected
     476     * @var string
     477     */
     478    protected $dbhost;
     479
     480    /**
     481     * Database Handle
     482     *
     483     * @since 3.5.0
     484     * @access protected
     485     * @var string
     486     */
     487    protected $dbh;
    452488
    453489    /**
Note: See TracChangeset for help on using the changeset viewer.