Make WordPress Core


Ignore:
Timestamp:
06/30/2014 05:48:16 AM (11 years ago)
Author:
azaozz
Message:

Secure embeds in the editor (first run):

  • When the user pastes an embeddable http URL, try to get the https embed.
  • If an embed provider doesn't support ssl embeds, show a placeholder/error message.
  • Revise the way we return error messages.

See #28195, #28507.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/misc.php

    r28754 r28919  
    825825// Run later as we have to set DOING_AUTOSAVE for back-compat
    826826add_filter( 'heartbeat_received', 'heartbeat_autosave', 500, 2 );
    827 
    828 /**
    829  * Send error message when an URL cannot be embedded. Used in wp_ajax_parse_embed().
    830  *
    831  * @access private
    832  * @since 4.0
    833  */
    834 function _wpview_embed_error( $output, $url ) {
    835     wp_send_json_error( array(
    836         'message' => sprintf( __( '%s failed to embed.' ), esc_url( $url ) ),
    837     ) );
    838 }
Note: See TracChangeset for help on using the changeset viewer.