Make WordPress Core


Ignore:
Timestamp:
05/16/2023 03:17:59 PM (4 months ago)
Author:
SergeyBiryukov
Message:

Grouped backports to the 4.1 branch.

  • Media: Prevent CSRF setting attachment thumbnails.

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

File:
1 edited

Legend:

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

    r40167 r55772  
    28632863        'captions'  => ! apply_filters( 'disable_captions', '' ),
    28642864        'nonce'     => array(
    2865             'sendToEditor' => wp_create_nonce( 'media-send-to-editor' ),
     2865            'sendToEditor'           => wp_create_nonce( 'media-send-to-editor' ),
     2866            'setAttachmentThumbnail' => wp_create_nonce( 'set-attachment-thumbnail' ),
    28662867        ),
    28672868        'post'    => array(
Note: See TracChangeset for help on using the changeset viewer.