Make WordPress Core

Changeset 10498


Ignore:
Timestamp:
02/04/2009 05:07:26 PM (17 years ago)
Author:
azaozz
Message:

Allow shortcodes inside caption boxes, props Viper007Bond, fixes #9022

File:
1 edited

Legend:

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

    r10495 r10498  
    579579
    580580    return '<div ' . $id . 'class="wp-caption ' . $align . '" style="width: ' . (10 + (int) $width) . 'px">'
    581     . $content . '<p class="wp-caption-text">' . $caption . '</p></div>';
     581    . do_shortcode( $content ) . '<p class="wp-caption-text">' . $caption . '</p></div>';
    582582}
    583583
Note: See TracChangeset for help on using the changeset viewer.