WordPress.org

Make WordPress Core

Ticket #43448: 43448.patch

File 43448.patch, 1.5 KB (added by mukesh27, 4 years ago)
  • widgets.php

    diff -Naur old/widgets.php new/widgets.php
    old new  
    283283 *
    284284 * @since 2.2.0
    285285 *
    286  * @global array $wp_registered_sidebars Stores the new sidebar in this array by sidebar ID.
     286 * @global array $wp_registered_sidebars remove the sidebar in this array by sidebar ID.
    287287 *
    288288 * @param string|int $sidebar_id The ID of the sidebar when it was registered.
    289289 */
     
    826826 * @since 2.2.0
    827827 *
    828828 * @global array $wp_registered_widgets
    829  * @global array $wp_registered_sidebars
     829 * @global array $wp_registered_sidebars Registered sidebars.
    830830 *
    831831 * @return bool True, if using widgets. False, if not using widgets.
    832832 */
     
    945945 * @since 2.2.0
    946946 * @access private
    947947 *
    948  * @global array $wp_registered_sidebars
     948 * @global array $wp_registered_sidebars Registered sidebars.
    949949 *
    950950 * @return array
    951951 */
     
    11191119 *
    11201120 * @since 2.8.0
    11211121 *
    1122  * @global array $wp_registered_sidebars
     1122 * @global array $wp_registered_sidebars Registered sidebars.
    11231123 * @global array $sidebars_widgets
    11241124 * @global array $wp_registered_widgets
    11251125 *
     
    11811181 *
    11821182 * @since 4.9.0
    11831183 * @since 4.9.2 Always tries to restore widget assignments from previous data, not just if sidebars needed mapping.
    1184  *
     1184 * @global array $wp_registered_sidebars Registered sidebars.
    11851185 * @param array $existing_sidebars_widgets List of sidebars and their widget instance IDs.
    11861186 * @return array Mapped sidebars widgets.
    11871187 */