WordPress.org

Make WordPress Core

Ticket #21082: 21082.diff

File 21082.diff, 480 bytes (added by matveb, 3 years ago)
  • wp-includes/media.php

     
    840840        $itemwidth = $columns > 0 ? floor(100/$columns) : 100; 
    841841        $float = is_rtl() ? 'right' : 'left'; 
    842842 
    843         $selector = "gallery-{$instance}"; 
     843        $selector = "gallery-{$id}-{$instance}"; 
    844844 
    845845        $gallery_style = $gallery_div = ''; 
    846846        if ( apply_filters( 'use_default_gallery_style', true ) )