Changeset 33388 for branches/3.8/src/wp-includes/class-wp-embed.php
- Timestamp:
- 07/23/2015 05:08:15 AM (11 years ago)
- File:
-
- 1 edited
-
branches/3.8/src/wp-includes/class-wp-embed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8/src/wp-includes/class-wp-embed.php
r25868 r33388 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 … … 281 281 */ 282 282 function autoembed( $content ) { 283 // Strip newlines from all elements. 284 $content = wp_replace_in_html_tags( $content, array( "\n" => " " ) ); 285 286 // Find URLs that are on their own line. 283 287 return preg_replace_callback( '|^\s*(https?://[^\s"]+)\s*$|im', array( $this, 'autoembed_callback' ), $content ); 284 288 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)