WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/05/2014 01:42:02 AM (7 years ago)
Author:
wonderboymusic
Message:

When a video shortcode has content in its body, append it as inner HTML in the resulting <video>.

Reverts [27096].
Fixes #26628.
See #27016.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r27063 r27097  
    12341234        }
    12351235    }
     1236
     1237    if ( ! empty( $content ) ) {
     1238        if ( false !== strpos( $content, "\n" ) )
     1239            $content = str_replace( array( "\r\n", "\n", "\t" ), '', $content );
     1240
     1241        $html .= trim( $content );
     1242    }
     1243
    12361244    if ( 'mediaelement' === $library )
    12371245        $html .= wp_mediaelement_fallback( $fileurl );
Note: See TracChangeset for help on using the changeset viewer.