Changeset 33360 for branches/4.2/src/wp-includes/class-wp-embed.php
- Timestamp:
- 07/22/2015 05:43:35 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.2/src/wp-includes/class-wp-embed.php
r32258 r33360 58 58 59 59 // Do the shortcode (only the [embed] one is registered) 60 $content = do_shortcode( $content );60 $content = do_shortcode( $content, true ); 61 61 62 62 // Put the original shortcodes back … … 313 313 */ 314 314 public function autoembed( $content ) { 315 // Strip newlines from all elements. 316 $content = wp_replace_in_html_tags( $content, array( "\n" => " " ) ); 317 318 // Find URLs that are on their own line. 315 319 return preg_replace_callback( '|^(\s*)(https?://[^\s"]+)(\s*)$|im', array( $this, 'autoembed_callback' ), $content ); 316 320 }
Note: See TracChangeset
for help on using the changeset viewer.