Make WordPress Core


Ignore:
Timestamp:
10/17/2022 06:11:58 PM (4 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-admin/includes/post.php

    r44670 r54570  
    12551255        // Filter query clauses to include filenames.
    12561256        if ( isset( $q['s'] ) ) {
    1257                 add_filter( 'posts_clauses', '_filter_query_attachment_filenames' );
     1257                add_filter( 'wp_allow_query_attachment_by_filename', '__return_true' );
    12581258        }
    12591259
Note: See TracChangeset for help on using the changeset viewer.