Make WordPress Core

Changeset 26526


Ignore:
Timestamp:
12/02/2013 04:31:57 PM (11 years ago)
Author:
wonderboymusic
Message:

Add a wp-video class to the div that wraps video shortcode output. It was previously hard to target.

Props nofearinc.
Fixes #25896.

File:
1 edited

Legend:

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

    r25868 r26526  
    11491149    $html .= '</video>';
    11501150
    1151     $html = sprintf( '<div style="width: %dpx; max-width: 100%%;">%s</div>', $width, $html );
     1151    $html = sprintf( '<div style="width: %dpx; max-width: 100%%;" class="wp-video">%s</div>', $width, $html );
    11521152    return apply_filters( 'wp_video_shortcode', $html, $atts, $video, $post_id, $library );
    11531153}
Note: See TracChangeset for help on using the changeset viewer.