Make WordPress Core


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

Grouped backports to the 4.4 branch.

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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.4/src/wp-admin/includes/ajax-actions.php

    r45951 r55779  
    21612161    }
    21622162
     2163    if ( false === check_ajax_referer( 'set-attachment-thumbnail', '_ajax_nonce', false ) ) {
     2164        wp_send_json_error();
     2165    }
     2166
    21632167    $post_ids = array();
    21642168    // For each URL, try to find its corresponding post ID.
Note: See TracChangeset for help on using the changeset viewer.