WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r30423 r29678  
    12481248    }
    12491249
    1250     if ( $atts['type'] !== 'audio' ) {
    1251         $atts['type'] = 'video';
    1252     }
    1253 
    12541250    $args = array(
    12551251        'post_status' => 'inherit',
     
    16011597        'class'    => apply_filters( 'wp_audio_shortcode_class', 'wp-audio-shortcode' ),
    16021598        'id'       => sprintf( 'audio-%d-%d', $post_id, $instances ),
    1603         'loop'     => wp_validate_boolean( $atts['loop'] ),
    1604         'autoplay' => wp_validate_boolean( $atts['autoplay'] ),
     1599        'loop'     => $atts['loop'],
     1600        'autoplay' => $atts['autoplay'],
    16051601        'preload'  => $atts['preload'],
    16061602        'style'    => 'width: 100%; visibility: hidden;',
     
    18271823        'height'   => absint( $atts['height'] ),
    18281824        'poster'   => esc_url( $atts['poster'] ),
    1829         'loop'     => wp_validate_boolean( $atts['loop'] ),
    1830         'autoplay' => wp_validate_boolean( $atts['autoplay'] ),
     1825        'loop'     => $atts['loop'],
     1826        'autoplay' => $atts['autoplay'],
    18311827        'preload'  => $atts['preload'],
    18321828    );
     
    26482644    if ( $attachment->post_parent ) {
    26492645        $post_parent = get_post( $attachment->post_parent );
    2650     } else {
    2651         $post_parent = false;
    2652     }
    2653 
    2654     if ( $post_parent ) {
    26552646        $parent_type = get_post_type_object( $post_parent->post_type );
    26562647        if ( $parent_type && $parent_type->show_ui && current_user_can( 'edit_post', $attachment->post_parent ) ) {
Note: See TracChangeset for help on using the changeset viewer.