WordPress.org

Make WordPress Core

Ticket #37329: 37329.1.diff

File 37329.1.diff, 1017 bytes (added by sathyapulse, 4 years ago)
  • wp-includes/media.php

     
    23152315         * @since 3.6.0
    23162316         *
    23172317         * @param string $class CSS class or list of space-separated classes.
     2318         * @param array  $atts  Array of attributes for the audio shortcode.
    23182319         */
    2319         $atts['class'] = apply_filters( 'wp_audio_shortcode_class', $atts['class'] );
     2320        $atts['class'] = apply_filters( 'wp_audio_shortcode_class', $atts['class'], $atts );
    23202321
    23212322        $html_atts = array(
    23222323                'class'    => $atts['class'],
     
    25702571         * @since 3.6.0
    25712572         *
    25722573         * @param string $class CSS class or list of space-separated classes.
     2574         * @param array  $atts  Array of attributes for the video shortcode.
    25732575         */
    2574         $atts['class'] = apply_filters( 'wp_video_shortcode_class', $atts['class'] );
     2576        $atts['class'] = apply_filters( 'wp_video_shortcode_class', $atts['class'], $atts );
    25752577
    25762578        $html_atts = array(
    25772579                'class'    => $atts['class'],