WordPress.org

Make WordPress Core

Changeset 32640


Ignore:
Timestamp:
05/28/2015 04:33:31 PM (6 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

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

    r32515 r32640  
    8585     *
    8686     * @since 1.2.0
    87      * @access private
     87     * @access public
    8888     * @var int
    8989     */
    90     var $num_queries = 0;
     90    public $num_queries = 0;
    9191
    9292    /**
    9393     * Count of rows returned by previous query
     94     *
     95     * @since 0.71
     96     * @access public
     97     * @var int
     98     */
     99    public $num_rows = 0;
     100
     101    /**
     102     * Count of affected rows by previous query
    94103     *
    95104     * @since 0.71
     
    97106     * @var int
    98107     */
    99     var $num_rows = 0;
    100 
    101     /**
    102      * Count of affected rows by previous query
     108    var $rows_affected = 0;
     109
     110    /**
     111     * The ID generated for an AUTO_INCREMENT column by the previous query (usually INSERT).
    103112     *
    104113     * @since 0.71
    105      * @access private
     114     * @access public
    106115     * @var int
    107116     */
    108     var $rows_affected = 0;
    109 
    110     /**
    111      * The ID generated for an AUTO_INCREMENT column by the previous query (usually INSERT).
    112      *
    113      * @since 0.71
    114      * @access public
    115      * @var int
    116      */
    117     var $insert_id = 0;
     117    public $insert_id = 0;
    118118
    119119    /**
     
    217217     *
    218218     * @since 2.5.0
    219      * @access private
     219     * @access public
    220220     * @var string
    221221     */
    222     var $prefix = '';
     222    public $prefix = '';
    223223
    224224    /**
Note: See TracChangeset for help on using the changeset viewer.