Changes from trunk/src/wp-includes/media.php at r29678 to branches/4.0/src/wp-includes/media.php at r30423
- File:
-
- 1 edited
-
branches/4.0/src/wp-includes/media.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0/src/wp-includes/media.php
r29678 r30423 1248 1248 } 1249 1249 1250 if ( $atts['type'] !== 'audio' ) { 1251 $atts['type'] = 'video'; 1252 } 1253 1250 1254 $args = array( 1251 1255 'post_status' => 'inherit', … … 1597 1601 'class' => apply_filters( 'wp_audio_shortcode_class', 'wp-audio-shortcode' ), 1598 1602 'id' => sprintf( 'audio-%d-%d', $post_id, $instances ), 1599 'loop' => $atts['loop'],1600 'autoplay' => $atts['autoplay'],1603 'loop' => wp_validate_boolean( $atts['loop'] ), 1604 'autoplay' => wp_validate_boolean( $atts['autoplay'] ), 1601 1605 'preload' => $atts['preload'], 1602 1606 'style' => 'width: 100%; visibility: hidden;', … … 1823 1827 'height' => absint( $atts['height'] ), 1824 1828 'poster' => esc_url( $atts['poster'] ), 1825 'loop' => $atts['loop'],1826 'autoplay' => $atts['autoplay'],1829 'loop' => wp_validate_boolean( $atts['loop'] ), 1830 'autoplay' => wp_validate_boolean( $atts['autoplay'] ), 1827 1831 'preload' => $atts['preload'], 1828 1832 ); … … 2644 2648 if ( $attachment->post_parent ) { 2645 2649 $post_parent = get_post( $attachment->post_parent ); 2650 } else { 2651 $post_parent = false; 2652 } 2653 2654 if ( $post_parent ) { 2646 2655 $parent_type = get_post_type_object( $post_parent->post_type ); 2647 2656 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.