WordPress.org

Make WordPress Core

Ticket #23282: 23282.14.diff

File 23282.14.diff, 671 bytes (added by obenland, 8 years ago)

Pass shortcode name to shortcode_atts() to provided for context to enable filtering

  • wp-includes/media.php

     
    851851        foreach ( $default_types as $type  )
    852852                $defaults_atts[$type] = '';
    853853
    854         $atts = shortcode_atts( $defaults_atts, $attr );
     854        $atts = shortcode_atts( $defaults_atts, $attr, 'audio' );
    855855        extract( $atts );
    856856
    857857        $primary = false;
     
    958958        foreach ( $default_types as $type  )
    959959                $defaults_atts[$type] = '';
    960960
    961         $atts = shortcode_atts( $defaults_atts, $attr );
     961        $atts = shortcode_atts( $defaults_atts, $attr, 'video' );
    962962        extract( $atts );
    963963
    964964        $primary = false;