Make WordPress Core

Ticket #60146: 60146.patch

File 60146.patch, 2.4 KB (added by shailu25, 5 months ago)

Patch Added

  • src/wp-settings.php

    diff --git a/src/wp-settings.php b/src/wp-settings.php
    index 38b03ecf72..eb629ac079 100644
    a b require ABSPATH . WPINC . '/class-wp-error.php'; 
    116116require ABSPATH . WPINC . '/pomo/mo.php';
    117117
    118118/**
    119  * @global wpdb $wpdb WordPress database abstraction object.
    120119 * @since 0.71
     120 *
     121 * @global wpdb $wpdb WordPress database abstraction object.
    121122 */
    122123global $wpdb;
    123124// Include the wpdb class and, if present, a db.php database drop-in.
    do_action( 'sanitize_comment_cookies' ); 
    521522/**
    522523 * WordPress Query object
    523524 *
    524  * @global WP_Query $wp_the_query WordPress Query object.
    525525 * @since 2.0.0
     526 *
     527 * @global WP_Query $wp_the_query WordPress Query object.
    526528 */
    527529$GLOBALS['wp_the_query'] = new WP_Query();
    528530
    $GLOBALS['wp_the_query'] = new WP_Query(); 
    530532 * Holds the reference to {@see $wp_the_query}.
    531533 * Use this global for WordPress queries
    532534 *
    533  * @global WP_Query $wp_query WordPress Query object.
    534535 * @since 1.5.0
     536 *
     537 * @global WP_Query $wp_query WordPress Query object.
    535538 */
    536539$GLOBALS['wp_query'] = $GLOBALS['wp_the_query'];
    537540
    538541/**
    539542 * Holds the WordPress Rewrite object for creating pretty URLs
    540543 *
    541  * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    542544 * @since 1.5.0
     545 *
     546 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    543547 */
    544548$GLOBALS['wp_rewrite'] = new WP_Rewrite();
    545549
    546550/**
    547551 * WordPress Object
    548552 *
    549  * @global WP $wp Current WordPress environment instance.
    550553 * @since 2.0.0
     554 *
     555 * @global WP $wp Current WordPress environment instance.
    551556 */
    552557$GLOBALS['wp'] = new WP();
    553558
    554559/**
    555560 * WordPress Widget Factory Object
    556561 *
    557  * @global WP_Widget_Factory $wp_widget_factory
    558562 * @since 2.8.0
     563 *
     564 * @global WP_Widget_Factory $wp_widget_factory
    559565 */
    560566$GLOBALS['wp_widget_factory'] = new WP_Widget_Factory();
    561567
    562568/**
    563569 * WordPress User Roles
    564570 *
    565  * @global WP_Roles $wp_roles WordPress role management object.
    566571 * @since 2.0.0
     572 *
     573 * @global WP_Roles $wp_roles WordPress role management object.
    567574 */
    568575$GLOBALS['wp_roles'] = new WP_Roles();
    569576
    unset( $locale_file ); 
    590597/**
    591598 * WordPress Locale object for loading locale domain date and various strings.
    592599 *
    593  * @global WP_Locale $wp_locale WordPress date and time locale object.
    594600 * @since 2.1.0
     601 *
     602 * @global WP_Locale $wp_locale WordPress date and time locale object.
    595603 */
    596604$GLOBALS['wp_locale'] = new WP_Locale();
    597605