Make WordPress Core


Ignore:
Timestamp:
10/17/2022 06:11:58 PM (2 years ago)
Author:
audrasjb
Message:

Grouped backports to the 5.1 branch.

  • Media: Refactor search by filename within the admin,
  • REST API: Lockdown post parameter of the terms endpoint,
  • Customize: Escape blogname option in underscores templates,
  • Query: Validate relation in WP_Date_Query,
  • Posts, Post types: Apply KSES to post-by-email content,
  • General: Validate host on "Are you sure?" screen,
  • Posts, Post types: Remove emails from post-by-email logs,
  • Pings/trackbacks: Apply KSES to all trackbacks,
  • Mail: Reset PHPMailer properties between use,
  • Widgets: Escape RSS error messages for display.

Merges [54521-54530] to the 5.1 branch.
Props voldemortensen, johnbillion, paulkevan, peterwilsoncc, xknown, dd32, audrasjb, martinkrcho, vortfu, davidbaumwald, tykoted, timothyblynjacobs, johnjamesjacoby, ehtis, matveb, talldanwp.

Location:
branches/5.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.1

  • branches/5.1/src/wp-includes/functions.php

    r49457 r54570  
    29182918        $html = __( 'The link you followed has expired.' );
    29192919        if ( wp_get_referer() ) {
    2920             $html .= '</p><p>';
    2921             $html .= sprintf(
     2920            $wp_http_referer = remove_query_arg( 'updated', wp_get_referer() );
     2921            $wp_http_referer = wp_validate_redirect( esc_url_raw( $wp_http_referer ) );
     2922            $html           .= '</p><p>';
     2923            $html           .= sprintf(
    29222924                '<a href="%s">%s</a>',
    2923                 esc_url( remove_query_arg( 'updated', wp_get_referer() ) ),
     2925                esc_url( $wp_http_referer ),
    29242926                __( 'Please try again.' )
    29252927            );
Note: See TracChangeset for help on using the changeset viewer.