[wp-trac] [WordPress Trac] #33097: Changed URLs in image gallery after Update to 4.2.3

WordPress Trac noreply at wordpress.org
Thu Jul 23 13:29:01 UTC 2015


#33097: Changed URLs in image gallery after Update to 4.2.3
--------------------------+-----------------------------
 Reporter:  La Geek       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.2.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 After update from 4.2.2 to 4.2.3 images in gallery are not found anymore.
 If there is only one image, the popup works. I use the Magnific popup
 Javascript with the following code in functions.php:


 {{{
 /* Name: magnific_popup */

 add_action( 'genesis_entry_content', 'dynamik_magnific_popup_hook_box', 10
 );
 function dynamik_magnific_popup_hook_box() {
         dynamik_magnific_popup_hook_box_content();
 }

 function dynamik_magnific_popup_hook_box_content() { ?>
 <script>
 jQuery(document).ready(function() {

         jQuery('.image-gallery').magnificPopup({
         delegate: 'a',
                 type: 'image',
                 closeOnContentClick: false,
                 closeBtnInside: false,
                 mainClass: 'mfp-with-zoom mfp-img-mobile',
                 image: {
                         verticalFit: true,
                 },
                 gallery: {
                         enabled: true
                 },
                 zoom: {
                         enabled: true,
                         duration: 300, // don't foget to change the
 duration also in CSS
                         opener: function(element) {
                                 return element.find('img');
                         }
                 }

         });
 });
 </script>
 <?php
 }
 }}}

 This worked fine over many WP versions. But now, after update to 4.2.3 the
 image urls have changed. Please hover the mouse over an image there:
 http://www.nifcoktw.com/news/altstadtfest-weissenburg-2015/

 Instead of image (popup) link
 http://www.nifcoktw.com/wp-content/uploads/2122960_plakataltstadtfest.jpg
 the link is now:
 www.nifcoktw.com/wp-
 content/uploads/2122960_plakataltstadtfest.jpg%20http://www.nifcoktw.com
 /wp-content/uploads/1-tanzstudio-1500x630.jpg%20http://www.nifcoktw.com
 /wp-
 content/uploads/10407673_1117032024980323_7339245485233745838_n.jpg%20http://www.nifcoktw.com
 /wp-
 content/uploads/11742846_1117032074980318_4152939575710077527_n.jpg%20http://www.nifcoktw.com
 /wp-
 content/uploads/11705138_1096677697026938_5221459161876418896_n.jpg%20http://www.nifcoktw.com
 /wp-
 content/uploads/10502525_428888893962737_2216928929966320340_n.jpg%20http://www.nifcoktw.com
 /wp-content/uploads/11752457_1117316254951900_7053245751125117208_n.jpg

 ----

 But if there is only 1 image in the gallery, the problem does not exist:
 http://www.nifcoktw.com/news/nifco-ktw-nifco-ktw-america-in-der-presse/

 I tested this again on local environment. Changed nothing else, then
 uploading to 4.2.3. Before update all worked fine, after update the images
 have bad links.

 PS: '''I can't choose below in dropdownmenu version 4.2.3''' (only 4.2.2
 or trunk), so I chosed 4.2.2, but it should be 4.2.3.

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


More information about the wp-trac mailing list