Make WordPress Core

Ticket #58404: 58404-2.patch

File 58404-2.patch, 2.0 KB (added by nihar007, 14 months ago)
  • src/wp-admin/widgets-form-blocks.php

    diff --git a/src/wp-admin/widgets-form-blocks.php b/src/wp-admin/widgets-form-blocks.php
    index b4c6dd28d4..4dc1c7c99c 100644
    a b require_once ABSPATH . 'wp-admin/admin-header.php'; 
    7373do_action( 'widgets_admin_page' );
    7474?>
    7575
    76 <div id="widgets-editor" class="blocks-widgets-container"></div>
     76<div id="widgets-editor" class="blocks-widgets-container">
     77        <h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1>
     78        <hr class="wp-header-end">
     79        <div class="error hide-if-js">
     80                <p><?php _e( 'The Widget screen requires JavaScript.' ); ?></p>
     81        </div>
     82</div>
    7783
    7884<?php
    7985/** This action is documented in wp-admin/widgets-form.php */
  • src/wp-includes/feed.php

    diff --git a/src/wp-includes/feed.php b/src/wp-includes/feed.php
    index 7b91cbb70b..716c311059 100644
    a b function rss_enclosure() { 
    480480                        foreach ( (array) $val as $enc ) {
    481481                                $enclosure = explode( "\n", $enc );
    482482
     483                                if ( 3 !== count($enclosure) ) {
     484                    continue;
     485                }
     486
    483487                                // Only get the first element, e.g. 'audio/mpeg' from 'audio/mpeg mpga mp2 mp3'.
    484488                                $t    = preg_split( '/[ \t]/', trim( $enclosure[2] ) );
    485489                                $type = $t[0];
  • src/wp-includes/taxonomy.php

    diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
    index 71280f0437..39eca44189 100644
    a b function wp_update_term( $term_id, $taxonomy, $args = array() ) { 
    31623162                return new WP_Error( 'invalid_term', __( 'Empty Term.' ) );
    31633163        }
    31643164
     3165        /**
     3166        * Filters a term before it is sanitized and updated into the database.
     3167        *
     3168        * @since 6.4
     3169        *
     3170        * @param string          $term     The term name to update.
     3171        * @param string          $taxonomy Taxonomy slug.
     3172        * @param array|string    $args     Array or query string of arguments passed to wp_update_term().
     3173        */
     3174        $term = apply_filters( 'pre_update_term', $term, $taxonomy, $args );
     3175
    31653176        $term = (array) $term->data;
    31663177
    31673178        // Escape data pulled from DB.