Make WordPress Core

Ticket #59255: 59255.4.patch

File 59255.4.patch, 7.2 KB (added by shailu25, 6 months ago)

Updated Patch

  • src/wp-includes/bookmark.php

    diff --git a/src/wp-includes/bookmark.php b/src/wp-includes/bookmark.php
    index 47a86d865d..4ceee23edd 100644
    a b  
    1212 * @since 2.1.0
    1313 *
    1414 * @global wpdb $wpdb WordPress database abstraction object.
     15 * @global array $link
    1516 *
    1617 * @param int|stdClass $bookmark
    1718 * @param string       $output   Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which
  • src/wp-includes/class-wp-editor.php

    diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php
    index bd73540bc9..31b7e9e586 100644
    a b final class _WP_Editors { 
    149149         *
    150150         * @since 3.3.0
    151151         *
     152         * @global WP_Screen $current_screen WordPress current screen object.
     153         *
    152154         * @param string $content   Initial content for the editor.
    153155         * @param string $editor_id HTML ID for the textarea and TinyMCE and Quicktags instances.
    154156         *                          Should not contain square brackets.
  • src/wp-includes/rss.php

    diff --git a/src/wp-includes/rss.php b/src/wp-includes/rss.php
    index 6d8941ab38..4d3f35e5cb 100644
    a b function _response_to_rss ($resp) { 
    631631 * Set up constants with default values, unless user overrides.
    632632 *
    633633 * @since 1.5.0
     634 *
     635 * @global string $wp_version The WordPress version string.
     636 *
    634637 * @package External
    635638 * @subpackage MagpieRSS
    636639 */
  • src/wp-includes/widgets.php

    diff --git a/src/wp-includes/widgets.php b/src/wp-includes/widgets.php
    index c568cbe301..9969958f00 100644
    a b global $wp_registered_sidebars, $wp_registered_widgets, $wp_registered_widget_co 
    2828/**
    2929 * Stores the sidebars, since many themes can have more than one.
    3030 *
    31  * @global array $wp_registered_sidebars Registered sidebars.
     31 * @global array $wp_registered_sidebars The registered sidebars.
    3232 * @since 2.2.0
    3333 */
    3434$wp_registered_sidebars = array();
    function register_sidebars( $number = 1, $args = array() ) { 
    224224 * @since 5.6.0 Added the `before_sidebar` and `after_sidebar` arguments.
    225225 * @since 5.9.0 Added the `show_in_rest` argument.
    226226 *
    227  * @global array $wp_registered_sidebars Registered sidebars.
     227 * @global array $wp_registered_sidebars The registered sidebars.
    228228 *
    229229 * @param array|string $args {
    230230 *     Optional. Array or string of arguments for the sidebar being registered.
    function register_sidebar( $args = array() ) { 
    326326 *
    327327 * @since 2.2.0
    328328 *
    329  * @global array $wp_registered_sidebars Registered sidebars.
     329 * @global array $wp_registered_sidebars The registered sidebars.
    330330 *
    331331 * @param string|int $sidebar_id The ID of the sidebar when it was registered.
    332332 */
    function unregister_sidebar( $sidebar_id ) { 
    341341 *
    342342 * @since 4.4.0
    343343 *
    344  * @global array $wp_registered_sidebars Registered sidebars.
     344 * @global array $wp_registered_sidebars The registered sidebars.
    345345 *
    346346 * @param string|int $sidebar_id The ID of the sidebar when it was registered.
    347347 * @return bool True if the sidebar is registered, false otherwise.
    function wp_widget_description( $id ) { 
    460460 *
    461461 * @since 2.9.0
    462462 *
    463  * @global array $wp_registered_sidebars Registered sidebars.
     463 * @global array $wp_registered_sidebars The registered sidebars.
    464464 *
    465465 * @param string $id sidebar ID.
    466466 * @return string|void Sidebar description, if available.
    function wp_unregister_widget_control( $id ) { 
    680680 *
    681681 * @since 2.2.0
    682682 *
    683  * @global array $wp_registered_sidebars Registered sidebars.
    684  * @global array $wp_registered_widgets  Registered widgets.
     683 * @global array $wp_registered_sidebars The registered sidebars.
     684 * @global array $wp_registered_widgets The registered widgets.
    685685 *
    686686 * @param int|string $index Optional. Index, name or ID of dynamic sidebar. Default 1.
    687687 * @return bool True, if widget sidebar was found and called. False if not found or not called.
    function dynamic_sidebar( $index = 1 ) { 
    891891 *
    892892 * @since 2.2.0
    893893 *
    894  * @global array $wp_registered_widgets
     894 * @global array $wp_registered_widgets The registered widgets.
    895895 *
    896896 * @param callable|false $callback      Optional. Widget callback to check. Default false.
    897897 * @param string|false   $widget_id     Optional. Widget ID. Optional, but needed for checking.
    function is_active_widget( $callback = false, $widget_id = false, $id_base = fal 
    937937 *
    938938 * @since 2.2.0
    939939 *
    940  * @global array $wp_registered_widgets  Registered widgets.
    941  * @global array $wp_registered_sidebars Registered sidebars.
     940 * @global array $wp_registered_widgets The registered widgets.
     941 * @global array $wp_registered_sidebars The registered sidebars.
    942942 *
    943943 * @return bool True if using widgets, false otherwise.
    944944 */
    function wp_set_sidebars_widgets( $sidebars_widgets ) { 
    11001100 * @since 2.2.0
    11011101 * @access private
    11021102 *
    1103  * @global array $wp_registered_sidebars Registered sidebars.
     1103 * @global array $wp_registered_sidebars The registered sidebars.
    11041104 *
    11051105 * @return array
    11061106 */
    function _wp_sidebars_changed() { 
    13061306 *
    13071307 * @since 2.8.0
    13081308 *
    1309  * @global array $wp_registered_sidebars Registered sidebars.
     1309 * @global array $wp_registered_sidebars The registered sidebars.
    13101310 * @global array $sidebars_widgets
    1311  * @global array $wp_registered_widgets  Registered widgets.
     1311 * @global array $wp_registered_widgets The registered widgets.
    13121312 *
    13131313 * @param string|bool $theme_changed Whether the theme was changed as a boolean. A value
    13141314 *                                   of 'customize' defers updates for the Customizer.
    function retrieve_widgets( $theme_changed = false ) { 
    13701370 * @since 4.9.0
    13711371 * @since 4.9.2 Always tries to restore widget assignments from previous data, not just if sidebars needed mapping.
    13721372 *
     1373 * @global array $wp_registered_sidebars The registered sidebars.
     1374 *
    13731375 * @param array $existing_sidebars_widgets List of sidebars and their widget instance IDs.
    13741376 * @return array Mapped sidebars widgets.
    13751377 */
    function wp_map_sidebars_widgets( $existing_sidebars_widgets ) { 
    15441546 *
    15451547 * @since 4.9.0
    15461548 *
     1549 * @global array $wp_registered_widgets The registered widgets.
     1550 *
    15471551 * @param array $sidebars_widgets   List of sidebars and their widget instance IDs.
    15481552 * @param array $allowed_widget_ids Optional. List of widget IDs to compare against. Default: Registered widgets.
    15491553 * @return array Sidebars with allowed widgets.
    function wp_assign_widget_to_sidebar( $widget_id, $sidebar_id ) { 
    19681972 *
    19691973 * @since 5.8.0
    19701974 *
     1975 * @global array $wp_registered_widgets The registered widgets.
     1976 * @global array $wp_registered_sidebars The registered sidebars.
     1977 *
    19711978 * @param string $widget_id Widget ID.
    19721979 * @param string $sidebar_id Sidebar ID.
    19731980 * @return string
    function wp_render_widget( $widget_id, $sidebar_id ) { 
    20342041 *
    20352042 * @since 5.8.0
    20362043 *
     2044 * @global array $wp_registered_widget_controls
     2045 *
    20372046 * @param string $id Widget ID.
    20382047 * @return string|null
    20392048 */
    function wp_check_widget_editor_deps() { 
    21162125 * @since 6.2.0
    21172126 * @access private
    21182127 *
    2119  * @global array $wp_registered_sidebars Registered sidebars.
     2128 * @global array $wp_registered_sidebars The registered sidebars.
    21202129 */
    21212130function _wp_block_theme_register_classic_sidebars() {
    21222131        global $wp_registered_sidebars;