Changeset 33359 for trunk/src/wp-includes/class-wp-embed.php
- Timestamp:
- 07/22/2015 05:14:50 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-embed.php
r32545 r33359 60 60 61 61 // Do the shortcode (only the [embed] one is registered) 62 $content = do_shortcode( $content );62 $content = do_shortcode( $content, true ); 63 63 64 64 // Put the original shortcodes back … … 319 319 */ 320 320 public function autoembed( $content ) { 321 // Strip newlines from all elements. 322 $content = wp_replace_in_html_tags( $content, array( "\n" => " " ) ); 323 324 // Find URLs that are on their own line. 321 325 return preg_replace_callback( '|^(\s*)(https?://[^\s"]+)(\s*)$|im', array( $this, 'autoembed_callback' ), $content ); 322 326 }
Note: See TracChangeset
for help on using the changeset viewer.