Make WordPress Core


Ignore:
Timestamp:
05/16/2023 03:17:59 PM (10 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-admin/includes/ajax-actions.php

    r45955 r55772  
    20122012    }
    20132013
     2014    if ( false === check_ajax_referer( 'set-attachment-thumbnail', '_ajax_nonce', false ) ) {
     2015        wp_send_json_error();
     2016    }
     2017
    20142018    $post_ids = array();
    20152019    // For each URL, try to find its corresponding post ID.
Note: See TracChangeset for help on using the changeset viewer.