PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.7.0
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.7.0
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
← All changes | js/wpo-images-view.js +8 -1 3.2.7 → 4.7.0 View file →
@@ -131,9 +131,9 @@
131 131 // get positions in then list.
132 132 index1 = $(checkbox_selector).index($('#' + first_id));
133 133 index2 = $(checkbox_selector).index($('#' + last_id));
134 134
135 - // check if both item exists. (posibly one of them was deleted)
135 + // check if both item exists. (possibly one of them was deleted)
136 136 if (-1 == index1) index1 = index2;
137 137 if (-1 == index2) index2 = index1;
138 138
139 139 // get correct first and last item.
@@ -288,8 +288,15 @@
288 288 </div>\
289 289 </label>\
290 290 </div>'
291 291 ].join(''));
292 +
293 + $('img:not(.error-event-attached)', images_view_container).each(function() {
294 + $(this).on('error', function() {
295 + // WordPress dashicons format-image icon.
296 + $(this).attr('src', 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHJlY3QgeD0iMCIgZmlsbD0ibm9uZSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIi8+PGc+PHBhdGggZmlsbD0iI0FBQUFBQSIgZD0iTTIuMjUgMWgxNS41Yy42OSAwIDEuMjUuNTYgMS4yNSAxLjI1djE1LjVjMCAuNjktLjU2IDEuMjUtMS4yNSAxLjI1SDIuMjVDMS41NiAxOSAxIDE4LjQ0IDEgMTcuNzVWMi4yNUMxIDEuNTYgMS41NiAxIDIuMjUgMXpNMTcgMTdWM0gzdjE0aDE0ek0xMCA2YzAtMS4xLS45LTItMi0ycy0yIC45LTIgMiAuOSAyIDIgMiAyLS45IDItMnptMyA1czAtNiAzLTZ2MTBjMCAuNTUtLjQ1IDEtMSAxSDVjLS41NSAwLTEtLjQ1LTEtMVY4YzIgMCAzIDQgMyA0czEtMyAzLTMgMyAyIDMgMnoiLz48L2c+PC9zdmc+');
297 + }).addClass('error-event-attached');
298 + });
292 299 }
293 300
294 301 /**
295 302 * Show only images for the selected blog.