WordPress.org

Make WordPress Core

Ticket #16768: 16768.3.patch

File 16768.3.patch, 998 bytes (added by hakre, 7 years ago)

wpdb PHP4 constructor removal, Eelated: #16764; X-Eef: #14672, [15537]

  • wp-includes/wp-db.php

     
    464464        /**
    465465         * Connects to the database server and selects a database
    466466         *
    467          * PHP4 compatibility layer for calling the PHP5 constructor.
    468          *
    469          * @uses wpdb::__construct() Passes parameters and returns result
    470          * @since 0.71
    471          *
    472          * @param string $dbuser MySQL database user
    473          * @param string $dbpassword MySQL database password
    474          * @param string $dbname MySQL database name
    475          * @param string $dbhost MySQL database host
    476          */
    477         function wpdb( $dbuser, $dbpassword, $dbname, $dbhost ) {
    478                 return $this->__construct( $dbuser, $dbpassword, $dbname, $dbhost );
    479         }
    480 
    481         /**
    482          * Connects to the database server and selects a database
    483          *
    484467         * PHP5 style constructor for compatibility with PHP5. Does
    485468         * the actual setting up of the class properties and connection
    486469         * to the database.