Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#33097 closed defect (bug) (duplicate)

Changed URLs in image gallery after Update to 4.2.3

Reported by: la-geek's profile La Geek Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.2.3
Component: Shortcodes Keywords:
Focuses: Cc:


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() {

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

	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');

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:

Instead of image (popup) link
the link is now:

But if there is only 1 image in the gallery, the problem does not exist:

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.

Change History (3)

#1 @La Geek
9 years ago

  • Component changed from General to Shortcodes

When I override the shortcodes.php of 4.2.3 with the shortcodes.php of 4.2.2 the problem is solved.

There are a lot of troubles with the shortcodes.php file, please see there:

Since I don't know, if the changes in includes/shortcodes.php are security fixes, I moved back to the file version 4.2.3. But hopefully a fix will be available soon.

Version 0, edited 9 years ago by La Geek (next)

#2 @johnbillion
9 years ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release
  • Version changed from 4.2.2 to 4.2.3

#3 @ocean90
9 years ago

  • Keywords needs-patch removed
  • Milestone Future Release deleted
  • Resolution set to duplicate
  • Status changed from new to closed

@La Geek allowed me to take a look at the post content. It uses shortcodes all over the place and is similiar to the one reported in #33102. Closing as a duplicate.

Note: See TracTickets for help on using tickets.