Make WordPress Core

Ticket #60146: 60146.2.patch

File 60146.2.patch, 2.7 KB (added by shailu25, 15 months ago)

Patch Updated

  • src/wp-settings.php

    diff --git a/src/wp-settings.php b/src/wp-settings.php
    index 38b03ecf72..b5ae854b9c 100644
    a b require_once ABSPATH . WPINC . '/plugin.php'; 
    5353 * If not already configured, `$blog_id` will default to 1 in a single site
    5454 * configuration. In multisite, it will be overridden by default in ms-settings.php.
    5555 *
    56  * @global int $blog_id
    5756 * @since 2.0.0
     57 *
     58 * @global int $blog_id
    5859 */
    5960global $blog_id;
    6061
    require ABSPATH . WPINC . '/class-wp-error.php'; 
    116117require ABSPATH . WPINC . '/pomo/mo.php';
    117118
    118119/**
    119  * @global wpdb $wpdb WordPress database abstraction object.
    120120 * @since 0.71
     121 *
     122 * @global wpdb $wpdb WordPress database abstraction object.
    121123 */
    122124global $wpdb;
    123125// Include the wpdb class and, if present, a db.php database drop-in.
    do_action( 'sanitize_comment_cookies' ); 
    521523/**
    522524 * WordPress Query object
    523525 *
    524  * @global WP_Query $wp_the_query WordPress Query object.
    525526 * @since 2.0.0
     527 *
     528 * @global WP_Query $wp_the_query WordPress Query object.
    526529 */
    527530$GLOBALS['wp_the_query'] = new WP_Query();
    528531
    $GLOBALS['wp_the_query'] = new WP_Query(); 
    530533 * Holds the reference to {@see $wp_the_query}.
    531534 * Use this global for WordPress queries
    532535 *
    533  * @global WP_Query $wp_query WordPress Query object.
    534536 * @since 1.5.0
     537 *
     538 * @global WP_Query $wp_query WordPress Query object.
    535539 */
    536540$GLOBALS['wp_query'] = $GLOBALS['wp_the_query'];
    537541
    538542/**
    539543 * Holds the WordPress Rewrite object for creating pretty URLs
    540544 *
    541  * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    542545 * @since 1.5.0
     546 *
     547 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    543548 */
    544549$GLOBALS['wp_rewrite'] = new WP_Rewrite();
    545550
    546551/**
    547552 * WordPress Object
    548553 *
    549  * @global WP $wp Current WordPress environment instance.
    550554 * @since 2.0.0
     555 *
     556 * @global WP $wp Current WordPress environment instance.
    551557 */
    552558$GLOBALS['wp'] = new WP();
    553559
    554560/**
    555561 * WordPress Widget Factory Object
    556562 *
    557  * @global WP_Widget_Factory $wp_widget_factory
    558563 * @since 2.8.0
     564 *
     565 * @global WP_Widget_Factory $wp_widget_factory
    559566 */
    560567$GLOBALS['wp_widget_factory'] = new WP_Widget_Factory();
    561568
    562569/**
    563570 * WordPress User Roles
    564571 *
    565  * @global WP_Roles $wp_roles WordPress role management object.
    566572 * @since 2.0.0
     573 *
     574 * @global WP_Roles $wp_roles WordPress role management object.
    567575 */
    568576$GLOBALS['wp_roles'] = new WP_Roles();
    569577
    unset( $locale_file ); 
    590598/**
    591599 * WordPress Locale object for loading locale domain date and various strings.
    592600 *
    593  * @global WP_Locale $wp_locale WordPress date and time locale object.
    594601 * @since 2.1.0
     602 *
     603 * @global WP_Locale $wp_locale WordPress date and time locale object.
    595604 */
    596605$GLOBALS['wp_locale'] = new WP_Locale();
    597606