Changeset 40019 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 01/27/2017 04:24:58 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r39934 r40019 3005 3005 } 3006 3006 3007 3008 3007 if ( ! empty( $no_ssl_support ) || ( is_ssl() && ( preg_match( '%<(iframe|script|embed) [^>]*src="http://%', $parsed ) || 3009 3008 preg_match( '%<link [^>]*href="http://%', $parsed ) ) ) ) { … … 3015 3014 } 3016 3015 3017 wp_send_json_success(array(3016 $return = array( 3018 3017 'body' => $parsed, 3019 3018 'attr' => $wp_embed->last_attr 3020 ) ); 3019 ); 3020 3021 if ( strpos( $parsed, 'class="wp-embedded-content' ) ) { 3022 if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) { 3023 $script_src = includes_url( 'js/wp-embed.js' ); 3024 } else { 3025 $script_src = includes_url( 'js/wp-embed.min.js' ); 3026 } 3027 3028 $return['head'] = '<script src="' . $script_src . '"></script>'; 3029 $return['sandbox'] = true; 3030 } 3031 3032 wp_send_json_success( $return ); 3021 3033 } 3022 3034
Note: See TracChangeset
for help on using the changeset viewer.