Make WordPress Core


Ignore:
Timestamp:
03/06/2013 08:07:40 PM (12 years ago)
Author:
nacin
Message:

Add shortcode_atts_$shortcode filter for when the name of the shortcode is passed to shortcode_atts(). props coffee2code. fixes #15155.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/media.php

    r23439 r23626  
    645645        'width' => '',
    646646        'caption' => ''
    647     ), $attr));
     647    ), $attr, 'caption'));
    648648
    649649    if ( 1 > (int) $width || empty($caption) )
     
    705705        'include'    => '',
    706706        'exclude'    => ''
    707     ), $attr));
     707    ), $attr, 'gallery'));
    708708
    709709    $id = intval($id);
Note: See TracChangeset for help on using the changeset viewer.