[wp-trac] [WordPress Trac] #29707: Native Audio Player
WordPress Trac
noreply at wordpress.org
Fri Sep 19 03:07:10 UTC 2014
#29707: Native Audio Player
--------------------------+-----------------------------
Reporter: noelb | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.0
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The native audio player is defaulted to 'visibility: hidden'. This bug
was also in the previous versions of wordpress and when I upgraded to 4.0
all audio in my posts went missing.
The fix is to edit media.php and search the style and delete the
'visibility:hidden'
wp-includes/media.php
$html_atts = array(
'class' => apply_filters( 'wp_audio_shortcode_class',
'wp-audio-shortcode' ),
'id' => sprintf( 'audio-%d-%d', $post_id, $instances
),
'loop' => $atts['loop'],
'autoplay' => $atts['autoplay'],
'preload' => $atts['preload'],
'style' => '/* width: 300px; */', <------
visibility:hidden was here
);
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29707>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list