Make WordPress Core


Ignore:
Timestamp:
05/16/2023 03:46:57 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Grouped backports to the 4.7 branch.

  • Media: Prevent CSRF setting attachment thumbnails.
  • Embeds: Add protocol validation for WordPress Embed code.

Merges [55763] and [55764] to the 4.7 branch.
Props dd32, isabel_brison, martinkrcho, matveb, ocean90, paulkevan, peterwilsoncc, timothyblynjacobs, xknown, youknowriad.

File:
1 edited

Legend:

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

    r40425 r55784  
    34063406        'captions'  => ! apply_filters( 'disable_captions', '' ),
    34073407        'nonce'     => array(
    3408             'sendToEditor' => wp_create_nonce( 'media-send-to-editor' ),
     3408            'sendToEditor'           => wp_create_nonce( 'media-send-to-editor' ),
     3409            'setAttachmentThumbnail' => wp_create_nonce( 'set-attachment-thumbnail' ),
    34093410        ),
    34103411        'post'    => array(
Note: See TracChangeset for help on using the changeset viewer.