Make WordPress Core


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

Grouped backports to the 4.2 branch.

  • Media: Prevent CSRF setting attachment thumbnails.

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

File:
1 edited

Legend:

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

    r40166 r55775  
    29522952        'captions'  => ! apply_filters( 'disable_captions', '' ),
    29532953        'nonce'     => array(
    2954             'sendToEditor' => wp_create_nonce( 'media-send-to-editor' ),
     2954            'sendToEditor'           => wp_create_nonce( 'media-send-to-editor' ),
     2955            'setAttachmentThumbnail' => wp_create_nonce( 'set-attachment-thumbnail' ),
    29552956        ),
    29562957        'post'    => array(
Note: See TracChangeset for help on using the changeset viewer.