mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@28919 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -824,15 +824,3 @@ function heartbeat_autosave( $response, $data ) {
|
||||
}
|
||||
// Run later as we have to set DOING_AUTOSAVE for back-compat
|
||||
add_filter( 'heartbeat_received', 'heartbeat_autosave', 500, 2 );
|
||||
|
||||
/**
|
||||
* Send error message when an URL cannot be embedded. Used in wp_ajax_parse_embed().
|
||||
*
|
||||
* @access private
|
||||
* @since 4.0
|
||||
*/
|
||||
function _wpview_embed_error( $output, $url ) {
|
||||
wp_send_json_error( array(
|
||||
'message' => sprintf( __( '%s failed to embed.' ), esc_url( $url ) ),
|
||||
) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user