Make WordPress Core


Ignore:
Timestamp:
07/29/2013 06:51:46 AM (11 years ago)
Author:
nacin
Message:

Update HTML classes in the audio and video shortcodes. props rfair404. fixes #24820.

File:
1 edited

Legend:

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

    r24837 r24857  
    861861        'loop'     => '',
    862862        'autoplay' => '',
    863         'preload' => 'none'
     863        'preload'  => 'none'
    864864    );
    865865    foreach ( $default_types as $type )
     
    873873        $type = wp_check_filetype( $src );
    874874        if ( ! in_array( $type['ext'], $default_types ) )
    875             return sprintf( '<a class="wp-post-format-link-audio" href="%s">%s</a>', esc_url( $src ), esc_html( $src ) );
     875            return sprintf( '<a class="wp-embedded-audio" href="%s">%s</a>', esc_url( $src ), esc_html( $src ) );
    876876        $primary = true;
    877877        array_unshift( $default_types, 'src' );
     
    10081008        $type = wp_check_filetype( $src );
    10091009        if ( ! in_array( $type['ext'], $default_types ) )
    1010             return sprintf( '<a class="wp-post-format-link-video" href="%s">%s</a>', esc_url( $src ), esc_html( $src ) );
     1010            return sprintf( '<a class="wp-embedded-video" href="%s">%s</a>', esc_url( $src ), esc_html( $src ) );
    10111011        $primary = true;
    10121012        array_unshift( $default_types, 'src' );
Note: See TracChangeset for help on using the changeset viewer.