Skip to content

Commit ce32243

Browse files
authored
Change priority of attachments (#1082)
* Change priority of attachments Use `image` as highest prio, followed by `audio` and `video`. This should also improve the enclosure handling. * changelog
1 parent 8770b5b commit ce32243

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2020
* Improve Interactions moderation
2121
* Compatibility with Akismet
2222
* Comment type mapping for `Like` and `Announce`
23+
* Changed priority of Attachments, to favor `Image` over `Audio` and `Video`
2324

2425
### Fixed
2526

includes/transformer/class-post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,9 @@ protected function get_attachment() {
311311
);
312312

313313
$media = array(
314+
'image' => array(),
314315
'audio' => array(),
315316
'video' => array(),
316-
'image' => array(),
317317
);
318318
$id = $this->wp_object->ID;
319319

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ For reasons of data protection, it is not possible to see the followers of other
142142
* Improved: Interactions moderation
143143
* Improved: Compatibility with Akismet
144144
* Improved: Comment type mapping for `Like` and `Announce`
145+
* Improved: Changed priority of Attachments, to favor `Image` over `Audio` and `Video`
145146
* Fixed: Empty `url` attributes in the Reply block no longer cause PHP warnings
146147

147148
= 4.4.0 =

0 commit comments

Comments
 (0)