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