Make WordPress Core

Ticket #15867: t15867-wpdb-sinces.diff

File t15867-wpdb-sinces.diff, 2.3 KB (added by demetris, 14 years ago)

Supplies/Fixes @since info in the wpdb class

  • wp-includes/wp-db.php

     
    6464         * Whether to suppress errors during the DB bootstrapping.
    6565         *
    6666         * @access private
    67          * @since 2.5
     67         * @since 2.5.0
    6868         * @var bool
    6969         */
    7070        var $suppress_errors = false;
     
    7373         * The last error during query.
    7474         *
    7575         * @see get_last_error()
    76          * @since 2.5
     76         * @since 2.5.0
    7777         * @access private
    7878         * @var string
    7979         */
     
    9191        /**
    9292         * Count of rows returned by previous query
    9393         *
    94          * @since 1.2
     94         * @since 1.2.0
    9595         * @access private
    9696         * @var int
    9797         */
     
    522522
    523523        /**
    524524         * Set $this->charset and $this->collate
     525         *
     526         * @since 3.1.0
    525527         */
    526528        function init_charset() {
    527529                if ( function_exists('is_multisite') && is_multisite() ) {
     
    541543        /**
    542544         * Sets the connection's character set.
    543545         *
     546         * @since 3.1.0
     547         *
    544548         * @param resource $dbh     The resource given by mysql_connect
    545549         * @param string   $charset The character set (optional)
    546550         * @param string   $collate The collation (optional)
     
    776780         *
    777781         * @see mysql_real_escape_string()
    778782         * @see addslashes()
    779          * @since 2.8
     783         * @since 2.8.0
    780784         * @access private
    781785         *
    782786         * @param  string $string to escape
     
    794798         *
    795799         * @uses wpdb::_escape()
    796800         * @uses wpdb::_real_escape()
    797          * @since  2.8
     801         * @since  2.8.0
    798802         * @access private
    799803         *
    800804         * @param  string|array $data
     
    9971001         * By default database errors are suppressed, with a simple
    9981002         * call to this function they can be enabled.
    9991003         *
    1000          * @since 2.5
     1004         * @since 2.5.0
    10011005         * @see wpdb::hide_errors()
    10021006         * @param bool $suppress Optional. New value. Defaults to true.
    10031007         * @return bool Old value
     
    10221026
    10231027        /**
    10241028         * Connect to and select database
     1029         *
     1030         * @since 3.0.0
    10251031         */
    10261032        function db_connect() {
    10271033                global $db_list, $global_db_list;
     
    15111517        /**
    15121518         * Determine if a database supports a particular feature
    15131519         *
    1514          * @since 2.7
     1520         * @since 2.7.0
    15151521         * @see   wpdb::db_version()
    15161522         *
    15171523         * @param string $db_cap the feature
     
    15581564        /**
    15591565         * The database version number.
    15601566         *
     1567         * @since 2.7.0
     1568         *
    15611569         * @return false|string false on failure, version number on success
    15621570         */
    15631571        function db_version() {