Changeset 12338
- Timestamp:
- 12/08/2009 12:45:32 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r12326 r12338 649 649 */ 650 650 function gallery_shortcode($attr) { 651 global $post ;651 global $post, $wp_locale; 652 652 653 653 static $instance = 0; … … 712 712 $columns = intval($columns); 713 713 $itemwidth = $columns > 0 ? floor(100/$columns) : 100; 714 714 $float = $wp_locale->text_direction == 'rtl' ? 'right' : 'left'; 715 715 716 $selector = "gallery-{$instance}"; 716 717 … … 721 722 } 722 723 #{$selector} .gallery-item { 723 float: left;724 float: {$float}; 724 725 margin-top: 10px; 725 726 text-align: center;
Note: See TracChangeset
for help on using the changeset viewer.