Make WordPress Core


Ignore:
Timestamp:
05/16/2023 03:43:00 PM (16 months ago)
Author:
audrasjb
Message:

Grouped backports to the 5.5 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.5 branch.
Props dd32, isabel_brison, martinkrcho, matveb, ocean90, paulkevan, peterwilsoncc, timothyblynjacobs, xknown, youknowriad.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.5/src/wp-includes/media.php

    r48854 r55782  
    41344134        'captions'         => ! apply_filters( 'disable_captions', '' ),
    41354135        'nonce'            => array(
    4136             'sendToEditor' => wp_create_nonce( 'media-send-to-editor' ),
     4136            'sendToEditor'           => wp_create_nonce( 'media-send-to-editor' ),
     4137            'setAttachmentThumbnail' => wp_create_nonce( 'set-attachment-thumbnail' ),
    41374138        ),
    41384139        'post'             => array(
Note: See TracChangeset for help on using the changeset viewer.