Changeset 33381 for branches/4.0/src/wp-includes/class-wp-embed.php
- Timestamp:
- 07/23/2015 04:49:25 AM (10 years ago)
- File:
-
- 1 edited
-
branches/4.0/src/wp-includes/class-wp-embed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0/src/wp-includes/class-wp-embed.php
r29707 r33381 61 61 62 62 // Do the shortcode (only the [embed] one is registered) 63 $content = do_shortcode( $content );63 $content = do_shortcode( $content, true ); 64 64 65 65 // Put the original shortcodes back … … 327 327 */ 328 328 public function autoembed( $content ) { 329 // Strip newlines from all elements. 330 $content = wp_replace_in_html_tags( $content, array( "\n" => " " ) ); 331 332 // Find URLs that are on their own line. 329 333 return preg_replace_callback( '|^\s*(https?://[^\s"]+)\s*$|im', array( $this, 'autoembed_callback' ), $content ); 330 334 }
Note: See TracChangeset
for help on using the changeset viewer.