Make WordPress Core

Ticket #29832: media.php.patch

File media.php.patch, 476 bytes (added by dcrabill, 10 years ago)

Adds a gallery_content filter at the end of gallery_shortcode

  • media.php

     
    10911091        $output .= "
    10921092                </div>\n";
    10931093
     1094        /**
     1095         * Filter the gallery shortcode output.
     1096         *
     1097         * @param string $output Output of the gallery shortcode.
     1098         * @param array  $attr   Attributes of the gallery shortcode.
     1099         */
     1100        $output = apply_filters( 'gallery_content', $output, $attr );
     1101
    10941102        return $output;
    10951103}
    10961104