Make WordPress Core

Ticket #24990: 24990.diff

File 24990.diff, 367 bytes (added by nofearinc, 11 years ago)

do_shortcode on caption attr

  • wp-includes/media.php

     
    805805                        $attr['caption'] = trim( $matches[2] );
    806806                }
    807807        }
     808        $attr['caption'] = do_shortcode( $attr['caption'] );
    808809
    809810        /**
    810811         * Filter the default caption shortcode output.