WordPress.org

Make WordPress Core

Ticket #14130: 14130.patch

File 14130.patch, 546 bytes (added by johnbillion, 4 years ago)
  • wp-includes/media.php

     
    806806        if ( empty($attachments) ) 
    807807                return ''; 
    808808 
     809        // Another chance for plugins/themes to override the default gallery template. 
     810        $output = apply_filters('post_gallery_output', '', $attr, $attachments); 
     811        if ( $output != '' ) 
     812                return $output; 
     813 
    809814        if ( is_feed() ) { 
    810815                $output = "\n"; 
    811816                foreach ( $attachments as $att_id => $attachment )