WordPress.org

Make WordPress Core

Changeset 24329


Ignore:
Timestamp:
05/22/13 22:27:53 (11 months ago)
Author:
SergeyBiryukov
Message:

Switch to a CSS comment in gallery_shortcode() to avoid breaking markup when the shortcode is used inside an HTML comment. props mark-k, aaroncampbell. fixes #23787.

File:
1 edited

Legend:

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

    r24249 r24329  
    771771                margin-left: 0; 
    772772            } 
    773         </style> 
    774         <!-- see gallery_shortcode() in wp-includes/media.php -->"; 
     773            /* see gallery_shortcode() in wp-includes/media.php */ 
     774        </style>"; 
    775775    $size_class = sanitize_html_class( $size ); 
    776776    $gallery_div = "<div id='$selector' class='gallery galleryid-{$id} gallery-columns-{$columns} gallery-size-{$size_class}'>"; 
Note: See TracChangeset for help on using the changeset viewer.