[wp-trac] [WordPress Trac] #34390: Gallery - images order

WordPress Trac noreply at wordpress.org
Wed Oct 21 16:55:12 UTC 2015


#34390: Gallery - images order
--------------------------+-----------------------------
 Reporter:  Stagger Lee   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Gallery       |    Version:  4.3.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I already asked here, but nobody answered:
 https://wordpress.org/support/topic/media-manager-shuffle-images-all-the-
 time?replies=10

 Seems as it is a bug, or oversight because you maybe dont test this real
 life scenario case. I know now what triggers this problem, did not know
 when asked in this topic.

 Some short info:

 - Have this problem in 1-2 years.
 - Installed new and clean Wordpress (to exclude my code lines or plugins)
 - Default theme, no plugins, no custom code in functions.php, no custom
 code in wp-config.php, .htaccess.


 How to trigger problem:

 - Add new post.
 - Open media manager and insert many images (In my case was it 280 images
 uploaded at once. I make multiple galleries on separate subpages to reduce
 page load). But for your test you can have maybe 100 images uploaded in
 this post, not so important.

 - When uploading finished you will see that all images are sorted in
 perfect order.

 - Just for clean test close modal box and open it again Add Media and
 chose Create Gallery.

 - Images are still sorted in perfect order.

 - Go to the first image media manager uploded in this batch. In my case as
 it was clean installation it was image first at the bottom (but you get
 it).

 - Now comes part how you trigger glitch/bug.

 - If you mark first uploaded image and hold Shift arrow on keyboard, and
 if you CLICK ONLY ONCE at last image you want in your gallery, sorting in
 gallery (backend and frontend) is still perfect and OK.

 - But, if you hold Shift key and keep clicking on row after row (to be
 able to see number of images in gallery at the bottom bar "#No selected"),
 then problems comes and seems as JS code is confused and shuffle many
 images.
 - Problem will be visible in next modal window where you chose gallery
 settings, in post self and on the front.

 Shift and click on last image wished in gallery = perfect order.
 Shift and click several time around before you decide what to mark =
 shuffled images.

 [[Image(http://s7.postimg.org/4o50g6cpn/2015_10_21_184256.jpg)]]
 [[Image(http://s17.postimg.org/t0c4blrin/2015_10_21_184859.jpg)]]
 [[Image(http://s9.postimg.org/4msb88s9r/2015_10_21_185039.jpg)]]

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34390>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list