Make WordPress Core

Ticket #46539: 46539.diff

File 46539.diff, 6.1 KB (added by mukesh27, 8 years ago)

Patch.

  • wp-includes/wp-db.php

    diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php
    index b1c6ddf52b..be7d9c062f 100644
    a b  
    66 *
    77 * @package WordPress
    88 * @subpackage Database
    9  * @since 0.71
     9 * @since 0.71.0
    1010 */
    1111
    1212/**
    13  * @since 0.71
     13 * @since 0.71.0
    1414 */
    1515define( 'EZSQL_VERSION', 'WP1.25' );
    1616
    1717/**
    18  * @since 0.71
     18 * @since 0.71.0
    1919 */
    2020define( 'OBJECT', 'OBJECT' );
    2121// phpcs:ignore Generic.NamingConventions.UpperCaseConstantName.ConstantNotUpperCase
    … … define( 'object', 'OBJECT' ); // Back compat.  
    2727define( 'OBJECT_K', 'OBJECT_K' );
    2828
    2929/**
    30  * @since 0.71
     30 * @since 0.71.0
    3131 */
    3232define( 'ARRAY_A', 'ARRAY_A' );
    3333
    3434/**
    35  * @since 0.71
     35 * @since 0.71.0
    3636 */
    3737define( 'ARRAY_N', 'ARRAY_N' );
    3838
    … … define( 'ARRAY_N', 'ARRAY_N' );  
    4646 *
    4747 * @link https://codex.wordpress.org/Function_Reference/wpdb_Class
    4848 *
    49  * @since 0.71
     49 * @since 0.71.0
    5050 */
    5151class wpdb {
    5252
    … … class wpdb {  
    5656         * Default behavior is to show errors if both WP_DEBUG and WP_DEBUG_DISPLAY
    5757         * evaluated to true.
    5858         *
    59          * @since 0.71
     59         * @since 0.71.0
    6060         * @var bool
    6161         */
    6262        var $show_errors = false;
    … … class wpdb {  
    8888        /**
    8989         * Count of rows returned by previous query
    9090         *
    91          * @since 0.71
     91         * @since 0.71.0
    9292         * @var int
    9393         */
    9494        public $num_rows = 0;
    … … class wpdb {  
    9696        /**
    9797         * Count of affected rows by previous query
    9898         *
    99          * @since 0.71
     99         * @since 0.71.0
    100100         * @var int
    101101         */
    102102        var $rows_affected = 0;
    … … class wpdb {  
    104104        /**
    105105         * The ID generated for an AUTO_INCREMENT column by the previous query (usually INSERT).
    106106         *
    107          * @since 0.71
     107         * @since 0.71.0
    108108         * @var int
    109109         */
    110110        public $insert_id = 0;
    … … class wpdb {  
    112112        /**
    113113         * Last query made
    114114         *
    115          * @since 0.71
     115         * @since 0.71.0
    116116         * @var array
    117117         */
    118118        var $last_query;
    … … class wpdb {  
    120120        /**
    121121         * Results of the last query made
    122122         *
    123          * @since 0.71
     123         * @since 0.71.0
    124124         * @var array|null
    125125         */
    126126        var $last_result;
    … … class wpdb {  
    128128        /**
    129129         * MySQL result, which is either a resource or boolean.
    130130         *
    131          * @since 0.71
     131         * @since 0.71.0
    132132         * @var mixed
    133133         */
    134134        protected $result;
    … … class wpdb {  
    169169        /**
    170170         * Saved info on the table column
    171171         *
    172          * @since 0.71
     172         * @since 0.71.0
    173173         * @var array
    174174         */
    175175        protected $col_info;
    … … class wpdb {  
    537537        /**
    538538         * Database Handle
    539539         *
    540          * @since 0.71
     540         * @since 0.71.0
    541541         * @var string
    542542         */
    543543        protected $dbh;
    … … class wpdb {  
    10791079         * The database name will be changed based on the current database
    10801080         * connection. On failure, the execution will bail and display an DB error.
    10811081         *
    1082          * @since 0.71
     1082         * @since 0.71.0
    10831083         *
    10841084         * @param string        $db  MySQL database name
    10851085         * @param resource|null $dbh Optional link identifier.
    … … class wpdb {  
    12171217         *
    12181218         * Use esc_sql() or wpdb::prepare() instead.
    12191219         *
    1220          * @since 0.71
     1220         * @since 0.71.0
    12211221         * @deprecated 3.6.0 Use wpdb::prepare()
    12221222         * @see wpdb::prepare()
    12231223         * @see esc_sql()
    … … class wpdb {  
    14111411        /**
    14121412         * Print SQL/DB error.
    14131413         *
    1414          * @since 0.71
     1414         * @since 0.71.0
    14151415         * @global array $EZSQL_ERROR Stores error information of query and error string
    14161416         *
    14171417         * @param string $str The error to display
    … … class wpdb {  
    14891489         * this function can be used to enable and disable showing of database
    14901490         * errors.
    14911491         *
    1492          * @since 0.71
     1492         * @since 0.71.0
    14931493         * @see wpdb::hide_errors()
    14941494         *
    14951495         * @param bool $show Whether to show or hide errors
    … … class wpdb {  
    15061506         *
    15071507         * By default database errors are not shown.
    15081508         *
    1509          * @since 0.71
     1509         * @since 0.71.0
    15101510         * @see wpdb::show_errors()
    15111511         *
    15121512         * @return bool Whether showing of errors was active
    … … class wpdb {  
    15371537        /**
    15381538         * Kill cached query results.
    15391539         *
    1540          * @since 0.71
     1540         * @since 0.71.0
    15411541         */
    15421542        public function flush() {
    15431543                $this->last_result   = array();
    … … class wpdb {  
    18461846         *
    18471847         * More information can be found on the codex page.
    18481848         *
    1849          * @since 0.71
     1849         * @since 0.71.0
    18501850         *
    18511851         * @param string $query Database query
    18521852         * @return int|bool Boolean true for CREATE, ALTER, TRUNCATE and DROP queries. Number of rows
    … … class wpdb {  
    24502450         * If the SQL result contains more than one column and/or more than one row, this function returns the value in the column and row specified.
    24512451         * If $query is null, this function returns the value in the specified column and row from the previous SQL result.
    24522452         *
    2453          * @since 0.71
     2453         * @since 0.71.0
    24542454         *
    24552455         * @param string|null $query Optional. SQL query. Defaults to null, use the result from the previous query.
    24562456         * @param int         $x     Optional. Column of value to return. Indexed from 0.
    … … class wpdb {  
    24822482         *
    24832483         * Executes a SQL query and returns the row from the SQL result.
    24842484         *
    2485          * @since 0.71
     2485         * @since 0.71.0
    24862486         *
    24872487         * @param string|null $query  SQL query.
    24882488         * @param string      $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to
    … … class wpdb {  
    25282528         * If the SQL result contains more than one column, this function returns the column specified.
    25292529         * If $query is null, this function returns the specified column from the previous SQL result.
    25302530         *
    2531          * @since 0.71
     2531         * @since 0.71.0
    25322532         *
    25332533         * @param string|null $query Optional. SQL query. Defaults to previous query.
    25342534         * @param int         $x     Optional. Column to return. Indexed from 0.
    … … class wpdb {  
    25582558         *
    25592559         * Executes a SQL query and returns the entire SQL result.
    25602560         *
    2561          * @since 0.71
     2561         * @since 0.71.0
    25622562         *
    25632563         * @param string $query  SQL query.
    25642564         * @param string $output Optional. Any of ARRAY_A | ARRAY_N | OBJECT | OBJECT_K constants.
    … … class wpdb {  
    32953295        /**
    32963296         * Retrieve column metadata from the last query.
    32973297         *
    3298          * @since 0.71
     3298         * @since 0.71.0
    32993299         *
    33003300         * @param string $info_type  Optional. Type one of name, table, def, max_length, not_null, primary_key, multiple_key, unique_key, numeric, blob, type, unsigned, zerofill
    33013301         * @param int    $col_offset Optional. 0: col name. 1: which table the col's in. 2: col's max length. 3: if the col is numeric. 4: col's type