Make WordPress Core

Ticket #63879: 63879.patch

File 63879.patch, 3.3 KB (added by viralsampat, 13 months ago)

I have checked above mentioned issue and resolved it. Here, I have added my patch.

  • src/wp-admin/includes/template.php

    diff --git src/wp-admin/includes/template.php src/wp-admin/includes/template.php
    index d8ee91d7ec..97ae71d278 100644
    function add_settings_field( $id, $title, $callback, $page, $section = 'default'  
    17501750 * Part of the Settings API. Use this in a settings page callback function
    17511751 * to output all the sections and fields that were added to that $page with
    17521752 * add_settings_section() and add_settings_field()
    1753  *
     1753 * @since 2.7.0
     1754 *
    17541755 * @global array $wp_settings_sections Storage array of all settings sections added to admin pages.
    17551756 * @global array $wp_settings_fields Storage array of settings fields and info about their pages/sections.
    1756  * @since 2.7.0
    17571757 *
    17581758 * @param string $page The slug name of the page whose settings sections you want to output.
    17591759 */
    function do_settings_sections( $page ) {  
    18001800 * a specific section. Should normally be called by do_settings_sections()
    18011801 * rather than directly.
    18021802 *
    1803  * @global array $wp_settings_fields Storage array of settings fields and their pages/sections.
    1804  *
    18051803 * @since 2.7.0
     1804 *
     1805 * @global array $wp_settings_fields Storage array of settings fields and their pages/sections.
    18061806 *
    18071807 * @param string $page Slug title of the admin page whose settings fields you want to show.
    18081808 * @param string $section Slug title of the settings section whose fields you want to show.
  • src/wp-includes/ms-settings.php

    diff --git src/wp-includes/ms-settings.php src/wp-includes/ms-settings.php
    index fbe0ea2618..20f7d4e706 100644
     
    55 *
    66 * Allows for some configuration in wp-config.php (see ms-default-constants.php)
    77 *
     8 * @since 3.0.0
    89 * @package WordPress
    910 * @subpackage Multisite
    10  * @since 3.0.0
     11 *
    1112 */
    1213
    1314// Don't load directly.
    if ( ! defined( 'ABSPATH' ) ) {  
    2122 * These may be populated through a custom `sunrise.php`. If not, then this
    2223 * file will attempt to populate them based on the current request.
    2324 *
     25 * @since 3.0.0
     26 *
    2427 * @global WP_Network $current_site The current network.
    2528 * @global object     $current_blog The current site.
    2629 * @global string     $domain       Deprecated. The domain of the site found on load.
    if ( ! defined( 'ABSPATH' ) ) {  
    3235 * @global bool       $public       Deprecated. Whether the site found on load is public.
    3336 *                                  Use `get_site()->public` instead.
    3437 *
    35  * @since 3.0.0
     38 *
    3639 */
     40
    3741global $current_site, $current_blog, $domain, $path, $site_id, $public;
    3842
    3943/** WP_Network class */
  • src/wp-includes/option.php

    diff --git src/wp-includes/option.php src/wp-includes/option.php
    index bb790673f7..66a615258b 100644
    function set_transient( $transient, $value, $expiration = 0 ) {  
    16291629 * The multi-table delete syntax is used to delete the transient record
    16301630 * from table a, and the corresponding transient_timeout record from table b.
    16311631 *
    1632  * @global wpdb $wpdb WordPress database abstraction object.
    1633  *
    16341632 * @since 4.9.0
    1635  *
     1633 *
     1634 * @global wpdb $wpdb WordPress database abstraction object.
     1635 *
    16361636 * @param bool $force_db Optional. Force cleanup to run against the database even when an external object cache is used.
    16371637 */
    16381638function delete_expired_transients( $force_db = false ) {