-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Reader Bugfixes #25016
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Reader Bugfixes #25016
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
ea90e4f
Fix `apps.wordpress.com` URLs not being handled
jkmassel 52bec8c
Don’t reload Reader views from deep links if they’re already displayed
jkmassel c6a3e76
Properly handle links to the reader root
jkmassel d1ea8c9
Rework opening a post by URL
jkmassel 3502ea5
fix broken test
jkmassel df7a0b5
release note
jkmassel a9472f7
Address PR review feedback
jkmassel 3e56bdd
Clean up contentIsAlreadyDisplayed and add comment
jkmassel 3040de4
Use wordPressComRestApi.perform
jkmassel 523028f
Handle `/read` and `/reader` URLs
jkmassel f7746ec
Remove tests
jkmassel dbecfbe
Fix opening WordPress.com News links in the app
crazytonyli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,12 @@ | |
| * [*] Fix overly long related post titles in Reader [#25011] | ||
| * [*] Increase number of lines for post tiles in Reader to three [#25019] | ||
| * [*] Fix horizontal insets in Reader article view [#25010] | ||
| * [*] Fix a bug where the app can't access some Jetpack connected sites [#24976] | ||
| * [*] Add support for editing custom taxonomy terms from "Post Settings" [#24964] | ||
| * [*] Fix overly long related post titles in Reader [#25011] | ||
| * [*] Increase number of lines for post tiles in Reader to three [#25019] | ||
| * [*] Fix horizontal insets in Reader article view [#25010] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These entries are now duplicated. |
||
| * [*] Fixed several reader bugs causing posts to load strangely, or not at all [#25016] | ||
|
|
||
| 26.4 | ||
| ----- | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
Tests/KeystoneTests/Tests/Utility/UniversalLinkRouterTests.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| import Foundation | ||
| import Testing | ||
|
|
||
| @testable import WordPress | ||
|
|
||
| struct UniversalLinkRouterTests { | ||
|
|
||
| @Test( | ||
| arguments: [ | ||
| "http://en.blog.wordpress.com/2025/11/26/wordpress-migration-checklist/", | ||
| ] | ||
| ) | ||
| func supportPostLinks(url: String) { | ||
| let router = UniversalLinkRouter.shared | ||
| #expect(router.canHandle(url: URL(string: url)!)) | ||
| } | ||
|
|
||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
WordPress/Classes/Utility/Universal Links/ContentIdentifiable.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| import Foundation | ||
|
|
||
| /// A protocol representing a content identifier – it could be a URL, ISBN, etc | ||
| /// | ||
| /// More than one object might share a content identifier – two objects with the same identifier represent the same content. | ||
| /// | ||
| public protocol ContentIdentifiable { | ||
| var contentIdentifier: String? { get } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: you can use the async API, which supports Decodable, in
wordPressComRestApi.perform(...)(which is different fromwordPressComRESTAPI)