Add shortcode_atts_$shortcode filter for when the name of the shortcode is passed to shortcode_atts(). props coffee2code. fixes #15155.
git-svn-id: http://core.svn.wordpress.org/trunk@23626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -644,7 +644,7 @@ function img_caption_shortcode($attr, $content = null) {
|
||||
'align' => 'alignnone',
|
||||
'width' => '',
|
||||
'caption' => ''
|
||||
), $attr));
|
||||
), $attr, 'caption'));
|
||||
|
||||
if ( 1 > (int) $width || empty($caption) )
|
||||
return $content;
|
||||
@@ -704,7 +704,7 @@ function gallery_shortcode($attr) {
|
||||
'size' => 'thumbnail',
|
||||
'include' => '',
|
||||
'exclude' => ''
|
||||
), $attr));
|
||||
), $attr, 'gallery'));
|
||||
|
||||
$id = intval($id);
|
||||
if ( 'RAND' == $order )
|
||||
|
||||
Reference in New Issue
Block a user