Changeset 33386 for branches/3.9/src/wp-includes/class-wp-embed.php
- Timestamp:
- 07/23/2015 05:00:44 AM (10 years ago)
- File:
-
- 1 edited
-
branches/3.9/src/wp-includes/class-wp-embed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.9/src/wp-includes/class-wp-embed.php
r28083 r33386 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 … … 292 292 */ 293 293 function autoembed( $content ) { 294 // Strip newlines from all elements. 295 $content = wp_replace_in_html_tags( $content, array( "\n" => " " ) ); 296 297 // Find URLs that are on their own line. 294 298 return preg_replace_callback( '|^\s*(https?://[^\s"]+)\s*$|im', array( $this, 'autoembed_callback' ), $content ); 295 299 }
Note: See TracChangeset
for help on using the changeset viewer.