Make WordPress Core

Ticket #25537: get_post_gallery_TEST.htm

File get_post_gallery_TEST.htm, 8.3 KB (added by Shelob9, 13 years ago)

Results of tests described in comment #2 showing when the issue happens and doesn't happen.

Line 
1<!--Generated with gallery shortcode in post 5 images in 3 wide grid ALL GOOD-->
2 <div id="gallery-1" class="gallery galleryid-1704 gallery-columns-3 gallery-size-thumbnail"><dl class="gallery-item">
3 <dt class="gallery-icon landscape">
4 <a href="http://test-core.dev/WordPress/?attachment_id=10"><img width="150" height="150" src="http://test-core.dev/content/uploads/2013/11/cropped-Pensive-Parakeet1-150x150.jpg" class="attachment-thumbnail" alt="cropped-Pensive-Parakeet1.jpg"></a>
5 </dt></dl><dl class="gallery-item">
6 <dt class="gallery-icon portrait">
7 <a href="http://test-core.dev/WordPress/?attachment_id=1027"><img width="150" height="150" src="http://test-core.dev/content/uploads/2013/03/featured-image-vertical-150x150.jpg" class="attachment-thumbnail" alt="Horizontal Featured Image"></a>
8 </dt></dl><dl class="gallery-item">
9 <dt class="gallery-icon landscape">
10 <a href="http://test-core.dev/WordPress/?attachment_id=1022"><img width="150" height="150" src="http://test-core.dev/content/uploads/2013/03/featured-image-horizontal-150x150.jpg" class="attachment-thumbnail" alt="Horizontal Featured Image"></a>
11 </dt></dl><br style="clear: both"><dl class="gallery-item">
12 <dt class="gallery-icon landscape">
13 <a href="http://test-core.dev/WordPress/?attachment_id=967"><img width="150" height="150" src="http://test-core.dev/content/uploads/2013/03/image-alignment-580x300-150x150.jpg" class="attachment-thumbnail" alt="Image Alignment 580x300"></a>
14 </dt></dl><dl class="gallery-item">
15 <dt class="gallery-icon landscape">
16 <a href="http://test-core.dev/WordPress/?attachment_id=1029"><img width="150" height="150" src="http://test-core.dev/content/uploads/2013/03/image-alignment-1200x4002-150x150.jpg" class="attachment-thumbnail" alt="Image Alignment 1200x4002"></a>
17 </dt></dl>
18 <br style="clear: both;">
19 </div>
20
21
22<!--Generated with `echo get_post_gallery( 1704 );` 5 images in 3 wide grid ALL GOOD -->
23 <div id="gallery-1" class="gallery galleryid-0 gallery-columns-3 gallery-size-thumbnail"><dl class="gallery-item">
24 <dt class="gallery-icon landscape">
25 <a href="http://test-core.dev/WordPress/?attachment_id=10"><img width="150" height="150" src="http://test-core.dev/content/uploads/2013/11/cropped-Pensive-Parakeet1-150x150.jpg" class="attachment-thumbnail" alt="cropped-Pensive-Parakeet1.jpg"></a>
26 </dt></dl><dl class="gallery-item">
27 <dt class="gallery-icon portrait">
28 <a href="http://test-core.dev/WordPress/?attachment_id=1027"><img width="150" height="150" src="http://test-core.dev/content/uploads/2013/03/featured-image-vertical-150x150.jpg" class="attachment-thumbnail" alt="Horizontal Featured Image"></a>
29 </dt></dl><dl class="gallery-item">
30 <dt class="gallery-icon landscape">
31 <a href="http://test-core.dev/WordPress/?attachment_id=1022"><img width="150" height="150" src="http://test-core.dev/content/uploads/2013/03/featured-image-horizontal-150x150.jpg" class="attachment-thumbnail" alt="Horizontal Featured Image"></a>
32 </dt></dl><br style="clear: both"><dl class="gallery-item">
33 <dt class="gallery-icon landscape">
34 <a href="http://test-core.dev/WordPress/?attachment_id=967"><img width="150" height="150" src="http://test-core.dev/content/uploads/2013/03/image-alignment-580x300-150x150.jpg" class="attachment-thumbnail" alt="Image Alignment 580x300"></a>
35 </dt></dl><dl class="gallery-item">
36 <dt class="gallery-icon landscape">
37 <a href="http://test-core.dev/WordPress/?attachment_id=1029"><img width="150" height="150" src="http://test-core.dev/content/uploads/2013/03/image-alignment-1200x4002-150x150.jpg" class="attachment-thumbnail" alt="Image Alignment 1200x4002"></a>
38 </dt></dl>
39 <br style="clear: both;">
40 </div>
41
42
43<!--Generated with gallery shortcode in post- 6 images in 3 wide grid ISSUE REPRODUCED-->
44<div id="gallery-1" class="gallery galleryid-1704 gallery-columns-3 gallery-size-thumbnail"><dl class="gallery-item">
45 <dt class="gallery-icon landscape">
46 <a href="http://test-core.dev/WordPress/?attachment_id=10"><img width="150" height="150" src="http://test-core.dev/content/uploads/2013/11/cropped-Pensive-Parakeet1-150x150.jpg" class="attachment-thumbnail" alt="cropped-Pensive-Parakeet1.jpg"></a>
47 </dt></dl><dl class="gallery-item">
48 <dt class="gallery-icon portrait">
49 <a href="http://test-core.dev/WordPress/?attachment_id=1027"><img width="150" height="150" src="http://test-core.dev/content/uploads/2013/03/featured-image-vertical-150x150.jpg" class="attachment-thumbnail" alt="Horizontal Featured Image"></a>
50 </dt></dl><dl class="gallery-item">
51 <dt class="gallery-icon landscape">
52 <a href="http://test-core.dev/WordPress/?attachment_id=1022"><img width="150" height="150" src="http://test-core.dev/content/uploads/2013/03/featured-image-horizontal-150x150.jpg" class="attachment-thumbnail" alt="Horizontal Featured Image"></a>
53 </dt></dl><br style="clear: both"><dl class="gallery-item">
54 <dt class="gallery-icon landscape">
55 <a href="http://test-core.dev/WordPress/?attachment_id=967"><img width="150" height="150" src="http://test-core.dev/content/uploads/2013/03/image-alignment-580x300-150x150.jpg" class="attachment-thumbnail" alt="Image Alignment 580x300"></a>
56 </dt></dl><dl class="gallery-item">
57 <dt class="gallery-icon landscape">
58 <a href="http://test-core.dev/WordPress/?attachment_id=1029"><img width="150" height="150" src="http://test-core.dev/content/uploads/2013/03/image-alignment-1200x4002-150x150.jpg" class="attachment-thumbnail" alt="Image Alignment 1200x4002"></a>
59 </dt></dl><dl class="gallery-item">
60 <dt class="gallery-icon landscape">
61 <a href="http://test-core.dev/WordPress/?attachment_id=1628"><img width="150" height="150" src="http://test-core.dev/content/uploads/2013/04/triforce-wallpaper-150x150.jpg" class="attachment-thumbnail" alt="It’s dangerous to go alone! Take this."></a>
62 </dt>
63 <dd class="wp-caption-text gallery-caption">
64 It’s dangerous to go alone! Take this.
65 </dd></dl><br style="clear: both">
66 <br style="clear: both;">
67 </div>
68
69<!--Generated with `echo get_post_gallery( 1704 );` 6 images in 3 wide grid ISSUE REPRODUCED -->
70 <div id="gallery-1" class="gallery galleryid-0 gallery-columns-3 gallery-size-thumbnail"><dl class="gallery-item">
71 <dt class="gallery-icon landscape">
72 <a href="http://test-core.dev/WordPress/?attachment_id=10"><img width="150" height="150" src="http://test-core.dev/content/uploads/2013/11/cropped-Pensive-Parakeet1-150x150.jpg" class="attachment-thumbnail" alt="cropped-Pensive-Parakeet1.jpg"></a>
73 </dt></dl><dl class="gallery-item">
74 <dt class="gallery-icon portrait">
75 <a href="http://test-core.dev/WordPress/?attachment_id=1027"><img width="150" height="150" src="http://test-core.dev/content/uploads/2013/03/featured-image-vertical-150x150.jpg" class="attachment-thumbnail" alt="Horizontal Featured Image"></a>
76 </dt></dl><dl class="gallery-item">
77 <dt class="gallery-icon landscape">
78 <a href="http://test-core.dev/WordPress/?attachment_id=1022"><img width="150" height="150" src="http://test-core.dev/content/uploads/2013/03/featured-image-horizontal-150x150.jpg" class="attachment-thumbnail" alt="Horizontal Featured Image"></a>
79 </dt></dl><br style="clear: both"><dl class="gallery-item">
80 <dt class="gallery-icon landscape">
81 <a href="http://test-core.dev/WordPress/?attachment_id=967"><img width="150" height="150" src="http://test-core.dev/content/uploads/2013/03/image-alignment-580x300-150x150.jpg" class="attachment-thumbnail" alt="Image Alignment 580x300"></a>
82 </dt></dl><dl class="gallery-item">
83 <dt class="gallery-icon landscape">
84 <a href="http://test-core.dev/WordPress/?attachment_id=1029"><img width="150" height="150" src="http://test-core.dev/content/uploads/2013/03/image-alignment-1200x4002-150x150.jpg" class="attachment-thumbnail" alt="Image Alignment 1200x4002"></a>
85 </dt></dl><dl class="gallery-item">
86 <dt class="gallery-icon landscape">
87 <a href="http://test-core.dev/WordPress/?attachment_id=1628"><img width="150" height="150" src="http://test-core.dev/content/uploads/2013/04/triforce-wallpaper-150x150.jpg" class="attachment-thumbnail" alt="It’s dangerous to go alone! Take this."></a>
88 </dt>
89 <dd class="wp-caption-text gallery-caption">
90 It’s dangerous to go alone! Take this.
91 </dd></dl><br style="clear: both">
92 <br style="clear: both;">
93 </div>