Changeset 41985 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 10/24/2017 04:06:23 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r41980 r41985 2994 2994 * @global WP_Embed $wp_embed Embed API instance. 2995 2995 * @global WP_Scripts $wp_scripts 2996 * @global int $content_width 2996 2997 */ 2997 2998 function wp_ajax_parse_embed() { 2998 global $post, $wp_embed ;2999 global $post, $wp_embed, $content_width; 2999 3000 3000 3001 if ( empty( $_POST['shortcode'] ) ) { … … 3035 3036 if ( ! $parsed ) { 3036 3037 $no_ssl_support = true; 3038 } 3039 } 3040 3041 // Set $content_width so any embeds fit in the destination iframe. 3042 if ( isset( $_POST['maxwidth'] ) && is_numeric( $_POST['maxwidth'] ) && $_POST['maxwidth'] > 0 ) { 3043 if ( ! isset( $content_width ) ) { 3044 $content_width = intval( $_POST['maxwidth'] ); 3045 } else { 3046 $content_width = min( $content_width, intval( $_POST['maxwidth'] ) ); 3037 3047 } 3038 3048 }
Note: See TracChangeset
for help on using the changeset viewer.