Make WordPress Core


Ignore:
Timestamp:
05/16/2023 03:50:15 PM (2 years ago)
Author:
audrasjb
Message:

Grouped backports to the 5.4 branch.

  • Media: Prevent CSRF setting attachment thumbnails.
  • Embeds: Add protocol validation for WordPress Embed code.
  • I18N: Introduce sanitization function for locale.
  • Editor: Ensure block comments are of a valid form.

Merges [55760-55764] to the 5.4 branch.
Props dd32, isabel_brison, martinkrcho, matveb, ocean90, paulkevan, peterwilsoncc, timothyblynjacobs, xknown, youknowriad.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.4/src/wp-admin/includes/ajax-actions.php

    r54559 r55785  
    26992699    }
    27002700
     2701    if ( false === check_ajax_referer( 'set-attachment-thumbnail', '_ajax_nonce', false ) ) {
     2702        wp_send_json_error();
     2703    }
     2704
    27012705    $post_ids = array();
    27022706    // For each URL, try to find its corresponding post ID.
Note: See TracChangeset for help on using the changeset viewer.