[wp-trac] [WordPress Trac] #31228: The "+" character in add_image_size breaks wp_get_attachment_image

WordPress Trac noreply at wordpress.org
Thu Feb 5 13:30:15 UTC 2015

#31228: The "+" character in add_image_size breaks wp_get_attachment_image
 Reporter:  ashorlivs          |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Media              |     Version:  4.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:

Comment (by joemcgill):

 It looks like WordPress is saving the data for the custom size named 'News
 - Bloc 2 - Image + texte', but the file name is incorrect. I'm not able to
 reproduce this problem using the same size name so it may be a problem
 with your setup.

 Can you try reproducing the same error using a default theme with plugins
 turned off by placing the `add_image_size()` function in your
 functions.php file? If you upload the image directly into the media
 library and the problem goes away, it's likely to be a bug in your plugin
 or in ACF. If the problem persists, then we can dig further.

Ticket URL: <https://core.trac.wordpress.org/ticket/31228#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list