Make WordPress Core

Ticket #59255: 59255.3.patch

File 59255.3.patch, 2.7 KB (added by viralsampat, 6 months ago)
  • src/wp-includes/bookmark.php

    diff --git src/wp-includes/bookmark.php src/wp-includes/bookmark.php
    index 47a86d865d..8fcc1bc247 100644
     
    1919 *                               respectively. Default OBJECT.
    2020 * @param string       $filter   Optional. How to sanitize bookmark fields. Default 'raw'.
    2121 * @return array|object|null Type returned depends on $output value.
     22 *
     23 * @global array link
    2224 */
    2325function get_bookmark( $bookmark, $output = OBJECT, $filter = 'raw' ) {
    2426        global $wpdb;
  • src/wp-includes/class-wp-editor.php

    diff --git src/wp-includes/class-wp-editor.php src/wp-includes/class-wp-editor.php
    index bd73540bc9..5bef182c3c 100644
    final class _WP_Editors { 
    153153         * @param string $editor_id HTML ID for the textarea and TinyMCE and Quicktags instances.
    154154         *                          Should not contain square brackets.
    155155         * @param array  $settings  See _WP_Editors::parse_settings() for description.
     156         *
     157         * @global WP_Screen $current_screen WordPress current screen object.
    156158         */
    157159        public static function editor( $content, $editor_id, $settings = array() ) {
    158160                $set            = self::parse_settings( $editor_id, $settings );
  • src/wp-includes/widgets.php

    diff --git src/wp-includes/widgets.php src/wp-includes/widgets.php
    index c568cbe301..b549e81972 100644
    function retrieve_widgets( $theme_changed = false ) { 
    13721372 *
    13731373 * @param array $existing_sidebars_widgets List of sidebars and their widget instance IDs.
    13741374 * @return array Mapped sidebars widgets.
     1375 *
     1376 * @global array $wp_registered_sidebars Registered sidebars.
    13751377 */
    13761378function wp_map_sidebars_widgets( $existing_sidebars_widgets ) {
    13771379        global $wp_registered_sidebars;
    function wp_map_sidebars_widgets( $existing_sidebars_widgets ) { 
    15471549 * @param array $sidebars_widgets   List of sidebars and their widget instance IDs.
    15481550 * @param array $allowed_widget_ids Optional. List of widget IDs to compare against. Default: Registered widgets.
    15491551 * @return array Sidebars with allowed widgets.
     1552 *
     1553 * * @global array wp_registered_widgets
    15501554 */
    15511555function _wp_remove_unregistered_widgets( $sidebars_widgets, $allowed_widget_ids = array() ) {
    15521556        if ( empty( $allowed_widget_ids ) ) {
    function wp_assign_widget_to_sidebar( $widget_id, $sidebar_id ) { 
    19711975 * @param string $widget_id Widget ID.
    19721976 * @param string $sidebar_id Sidebar ID.
    19731977 * @return string
     1978 *
     1979 * @global array $wp_registered_widgets            Uses stored registered widgets.
     1980 * @global array $wp_registered_sidebars Registered sidebars.
    19741981 */
    19751982function wp_render_widget( $widget_id, $sidebar_id ) {
    19761983        global $wp_registered_widgets, $wp_registered_sidebars;