Problem with WordPress Media Library grid view and WP Ajax requests
-
Dear reader,
We are very happy using your plugin and everything is working out perfectly for us, however, with the setup we are using we want to show years within the circles at the frontend instead of using an icon.
Going through some website pages I found that you can enable this by adding the following to the functions.php:
define( ‘TIMELINE_EXPRESS_YEAR_ICONS’, true );
The result is indeed that no longer an icon is shown, however, the WordPress Ajax (admin-ajax.php) responses from the website break (are invalid) because the inline style you are adding in the timeline_express_register_settings function (see class.timeline-express-admin.php file) is put at the start of the JSON requests.
A way to easily test and reproduce this is by adding the above line to the theme’s functions.php and then logging into WordPress and going to Media > Library in the left-menu with GRID as viewing mode (instead of LIST).
The JSON request will then fail and the media item square images will not load and show up. When you then either remove the defined TIMELINE_EXPRESS_YEAR_ICONS or disable the plugin it works again.
Can you please look into this and fix it in the next plugin release? Thanks!
Kind regards,
Ernst Jansen
ByteMotion
- The topic ‘Problem with WordPress Media Library grid view and WP Ajax requests’ is closed to new replies.