Make WordPress Core

Ticket #63879: 63879.2.patch

File 63879.2.patch, 3.4 KB (added by sandipsinh007, 12 months ago)

Patch Updated

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

    diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php
    index d8ee91d7ec..e18e6bcbb3 100644
    a b function add_settings_field( $id, $title, $callback, $page, $section = 'default'  
    17511751 * to output all the sections and fields that were added to that $page with
    17521752 * add_settings_section() and add_settings_field()
    17531753 *
     1754 * @since 2.7.0
     1755 *
    17541756 * @global array $wp_settings_sections Storage array of all settings sections added to admin pages.
    17551757 * @global array $wp_settings_fields Storage array of settings fields and info about their pages/sections.
    1756  * @since 2.7.0
    17571758 *
    17581759 * @param string $page The slug name of the page whose settings sections you want to output.
    17591760 */
    function do_settings_sections( $page ) {  
    18001801 * a specific section. Should normally be called by do_settings_sections()
    18011802 * rather than directly.
    18021803 *
    1803  * @global array $wp_settings_fields Storage array of settings fields and their pages/sections.
    1804  *
    18051804 * @since 2.7.0
    18061805 *
     1806 * @global array $wp_settings_fields Storage array of settings fields and their pages/sections.
     1807 *
    18071808 * @param string $page Slug title of the admin page whose settings fields you want to show.
    18081809 * @param string $section Slug title of the settings section whose fields you want to show.
    18091810 */
  • src/wp-admin/nav-menus.php

    diff --git a/src/wp-admin/nav-menus.php b/src/wp-admin/nav-menus.php
    index ea76404c2e..5b1a48c123 100644
    a b if ( is_nav_menu( $nav_menu_selected_id ) ) {  
    672672}
    673673
    674674/**
    675  * @global int $_wp_nav_menu_max_depth
    676  *
    677675 * @since 3.0.0
    678676 *
     677 * @global int $_wp_nav_menu_max_depth
     678 *
    679679 * @param string $classes
    680680 * @return string
    681681 */
  • src/wp-includes/ms-settings.php

    diff --git a/src/wp-includes/ms-settings.php b/src/wp-includes/ms-settings.php
    index fbe0ea2618..f03c8c61f9 100644
    a b if ( ! defined( 'ABSPATH' ) ) {  
    2121 * These may be populated through a custom `sunrise.php`. If not, then this
    2222 * file will attempt to populate them based on the current request.
    2323 *
     24 * @since 3.0.0
     25 *
    2426 * @global WP_Network $current_site The current network.
    2527 * @global object     $current_blog The current site.
    2628 * @global string     $domain       Deprecated. The domain of the site found on load.
    if ( ! defined( 'ABSPATH' ) ) {  
    3234 * @global bool       $public       Deprecated. Whether the site found on load is public.
    3335 *                                  Use `get_site()->public` instead.
    3436 *
    35  * @since 3.0.0
    3637 */
    3738global $current_site, $current_blog, $domain, $path, $site_id, $public;
    3839
  • src/wp-includes/option.php

    diff --git a/src/wp-includes/option.php b/src/wp-includes/option.php
    index bb790673f7..9239f68b5f 100644
    a b 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
    16351633 *
     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 ) {