WordPress.org

Make WordPress Core

Ticket #31556: 31556.diff

File 31556.diff, 593 bytes (added by jtsternberg, 7 years ago)
  • src/wp-includes/load.php

     
    353353}
    354354
    355355/**
     356 * Returns the `$wpdb` global. Can help prevent stomping of the $wbdp global.
     357 *
     358 * @since 4.1.2
     359 *
     360 * @global wpdb $wpdb The WordPress database class.
     361 * @return wpdb $wpdb The WordPress database class.
     362 */
     363function wpdb() {
     364        global $wpdb;
     365        return $wpdb;
     366}
     367
     368/**
    356369 * Set the database table prefix and the format specifiers for database
    357370 * table columns.
    358371 *