Make WordPress Core


Ignore:
Timestamp:
11/21/2012 04:02:20 PM (13 years ago)
Author:
koopersmith
Message:

Media: Backwards compatibility for the many send_to_editor filters. props nacin. see #22186, #21390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/media.php

    r22761 r22768  
    13291329        'mimeTypes' => wp_list_pluck( get_post_mime_types(), 0 ),
    13301330        'captions'  => ! apply_filters( 'disable_captions', '' ),
     1331        'nonce'     => array(
     1332            'sendToEditor' => wp_create_nonce( 'media-send-to-editor' ),
     1333        ),
    13311334    );
    13321335
Note: See TracChangeset for help on using the changeset viewer.