Skip to content

Commit

Permalink
Merge pull request #14139 from wordpress-mobile/release/14.9
Browse files Browse the repository at this point in the history
Merge Release/14.9 into develop
  • Loading branch information
oguzkocer authored May 19, 2020
2 parents 85afe07 + 63a7d71 commit 521b768
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
* Support the superscript and subscript HTML formatting on the Block Editor and Classic Editor.
* [***] You can now draw on images to annotate them using the Edit image feature in the post editor.

14.8.1
-----
* Fix adding and removing of featured images to posts.

14.8
-----
* Block editor: Prefill caption for image blocks when available on the Media library
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class MediaRequestAuthenticator {

// We want to make sure we're never sending credentials
// to a URL that's not safe.
guard url.isHostedAtWPCom || url.isPhoton() else {
guard !url.isFileURL || url.isHostedAtWPCom || url.isPhoton() else {
let request = URLRequest(url: url)
provide(request)
return
Expand Down
4 changes: 3 additions & 1 deletion WordPress/Classes/Utility/Media/ImageLoader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ import AutomatticTracks
/// - size: The preferred size of the image to load.
///
func loadImage(with url: URL, from host: MediaHost, preferredSize size: CGSize = .zero) {
if url.isGif {
if url.isFileURL {
downloadImage(from: url)
} else if url.isGif {
loadGif(with: url, from: host, preferredSize: size)
} else {
imageView.clean()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1461,6 +1461,7 @@ - (void)FeaturedImageViewControllerOnRemoveImageButtonPressed:(FeaturedImageView
self.animatedFeaturedImageData = nil;
[self.apost setFeaturedImage:nil];
[self dismissViewControllerAnimated:YES completion:nil];
[self.tableView reloadSections:[NSIndexSet indexSetWithIndex:PostSettingsSectionFeaturedImage] withRowAnimation:UITableViewRowAnimationNone];
}

@end
2 changes: 1 addition & 1 deletion config/Version.internal.xcconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_SHORT=14.9

// Internal long version example: VERSION_LONG=9.9.0.20180423
VERSION_LONG=14.9.0.20200518
VERSION_LONG=14.9.0.20200519
2 changes: 1 addition & 1 deletion config/Version.public.xcconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_SHORT=14.9

// Public long version example: VERSION_LONG=9.9.0.0
VERSION_LONG=14.9.0.0
VERSION_LONG=14.9.0.1

0 comments on commit 521b768

Please sign in to comment.