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