forked from beezwax/WP-Publish-to-Apple-News
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Allow bulk article deletions from Apple News list table #1207
Merged
dlh01
merged 12 commits into
release/2.7.0
from
feature/APPLE-191/allow-bulk-article-deletions
Dec 4, 2024
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
a4d4c93
Remove now-redundant filter
dlh01 8e278de
Use more-standard escaping and encoding
dlh01 96e1e6a
De-duplicate selector
dlh01 2daa84a
Delete checksum when deleting article
dlh01 958b09d
Correct check for successful DELETE response
dlh01 6e69aa5
Set up delete bulk action
dlh01 7265549
Allow more time for DELETE requests
dlh01 6b0d022
Set page text depending on the action
dlh01 640f0d6
Disable submit button after completion
dlh01 e701463
Restore PHPCS ignores
dlh01 83b8bec
Spacin'
dlh01 0ab4d9c
Undo button text change
dlh01 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 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 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 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 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 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.
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.
the old hard-coded text tells me that "Bulk Export" will publish the posts to Apple News. This new text does not tell me that. If I saw "Bulk Export", I would expect it to download a file vs publishing. Maybe "Bulk Export" needs to be "Bulk Publish"?
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.
The current language was retained and is supposed to be applied here:
apple-news/admin/class-admin-apple-bulk-export-page.php
Lines 86 to 115 in 83b8bec
With the changes in this PR, this partial should only ever be rendered when a known bulk action is being invoked, and the text should reflect that action (which happens in the lines linked above).
There isn't any circumstance where the default strings seen here should actually be rendered, but I included them so that there would be something on the page if it ever happened. You're right that the strings are vague, but how the page would behave at that point is also not known, so I wasn't sure what else to do.
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.
cool, I was kind of picking that up from the code. this makes sense. I still wonder about using
Export
vsUpload
orPublish
, but maybe that's a question for project maintainers or stakeholders. The button text wasPublish All
and I don't see that it is retained, but maybe I'm missing it. Anyway, I'm good with whatever, so feel free to proceed as you see fit.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.
Thanks for catching that the button text wasn't actually kept! Whoops. Fixed in 0ab4d9c.
Re. the word
Export
, I agree that it isn't as clear as it could be. I'm reluctant to change it here, but, as it happens, @scottnelle has been working on refining that language in #1204 (see also https://l.alley.dev/a3a948a289), so maybe we could expand that PR to include language for this page that will be consistent with the change being made on the list table.