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 | vendor/team-updraft/lib-central/central/modules/media.php +2 -1 3.7.1 → 4.7.0 View file →
@@ -117,9 +117,8 @@
117 117 }
118 118
119 119 $response = array(
120 120 'items' => $media_items,
121 - 'has_image_editor' => $this->has_image_editor(isset($media_items[0]) ? $media_items[0] : null),
122 121 'info' => $info,
123 122 'options' => array(
124 123 'date' => $this->get_date_options(),
125 124 'type' => $this->get_type_options()
@@ -264,8 +263,10 @@
264 263 'alt_text' => $alt,
265 264 'can_restore' => $can_restore,
266 265 'image_edit_overwrite' => $image_edit_overwrite
267 266 );
267 +
268 + $media->has_image_editor = $this->has_image_editor($media);
268 269 }
269 270 }
270 271
271 272 return $raw ? $media : $this->_response(array('item' => $media));