Make WordPress Core


Ignore:
Timestamp:
05/16/2023 03:25:24 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Grouped backports to the 4.3 branch.

  • Media: Prevent CSRF setting attachment thumbnails.

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

File:
1 edited

Legend:

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

    r40165 r55776  
    29782978        'captions'  => ! apply_filters( 'disable_captions', '' ),
    29792979        'nonce'     => array(
    2980             'sendToEditor' => wp_create_nonce( 'media-send-to-editor' ),
     2980            'sendToEditor'           => wp_create_nonce( 'media-send-to-editor' ),
     2981            'setAttachmentThumbnail' => wp_create_nonce( 'set-attachment-thumbnail' ),
    29812982        ),
    29822983        'post'    => array(
Note: See TracChangeset for help on using the changeset viewer.