-
Notifications
You must be signed in to change notification settings - Fork 846
Disabled editing and deleting capabilities in WP-Admin Post list for Posts Page #19900
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
Conversation
|
Caution: This PR has changes that must be merged to WordPress.com |
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
Is hovering over this supposed to reveal a tooltip with the |
Yes, hovering over the icon should display a message about why the page cannot be edited. It's not actually a tooltip, it uses the built in HTML |
projects/plugins/jetpack/modules/masterbar/wp-posts-list/bootstrap.php
Outdated
Show resolved
Hide resolved
projects/plugins/jetpack/changelog/add-disable-edit-and-delete-on-posts-page
Outdated
Show resolved
Hide resolved
cpapazoglou
left a comment
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.
Excellent work @BogdanUngureanu ! The code changes test well for me both in Simple & Atomic sites 🎉!
I have left some comments for discussion.
projects/plugins/jetpack/modules/masterbar/wp-posts-list/class-posts-list-page-notification.php
Outdated
Show resolved
Hide resolved
projects/plugins/jetpack/modules/masterbar/wp-posts-list/class-posts-list-page-notification.php
Outdated
Show resolved
Hide resolved
projects/plugins/jetpack/modules/masterbar/wp-posts-list/bootstrap.php
Outdated
Show resolved
Hide resolved
projects/plugins/jetpack/modules/masterbar/wp-posts-list/bootstrap.php
Outdated
Show resolved
Hide resolved
projects/plugins/jetpack/modules/masterbar/wp-posts-list/class-posts-list-page-notification.php
Outdated
Show resolved
Hide resolved
8b19a50 to
b7d9301
Compare
… Post list for the page that is configured as a Posts Page in WP-Admin.
…edit-and-delete-on-posts-page Co-authored-by: Harris Papazolgou <[email protected]>
…osts-list/bootstrap.php Co-authored-by: Jeremy Herve <[email protected]>
…osts-list/class-posts-list-page-notification.php Co-authored-by: Jeremy Herve <[email protected]>
b7d9301 to
3e7088c
Compare
mmtr
left a comment
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.
This works great on my tests. Just left a comment regarding smaller viewports.
projects/plugins/jetpack/modules/masterbar/wp-posts-list/class-posts-list-page-notification.php
Outdated
Show resolved
Hide resolved
040a537 to
a909d52
Compare
projects/plugins/jetpack/modules/masterbar/wp-posts-list/class-posts-list-page-notification.php
Show resolved
Hide resolved
projects/plugins/jetpack/modules/masterbar/wp-posts-list/class-posts-list-page-notification.php
Outdated
Show resolved
Hide resolved
…loaded later than on AT/JP.
…-posts-list-page-notification.php Co-authored-by: Miguel Torres <[email protected]>
78adcc3 to
3c27284
Compare
mmtr
left a comment
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.
Tested a variety of scenarios in both Simple and Atomic sites, and everything worked as espected. Nice job, @BogdanUngureanu!
|
Great news! One last step: head over to your WordPress.com diff, D61647-code, and commit it. Thank you! |
|
Deployed on r226120-wpcom |
Disables editing and deleting capabilities in WP-Admin Post list for the page that is configured as a Posts Page in WP-Admin.
Fixes Automattic/wp-calypso#52692
Changes proposed in this Pull Request:
Does this pull request change what data or activity we track or use?
No
Testing instructions:
Atomic:
titleinforming why the page cannot be edited or deleted.Simple Sites
projects/plugins/jetpack/modules/masterbar/wp-posts-list/class-posts-list-page-notification.phpclass into the corresponding WPCOM directory.Show wp-admin pages if availabletoggle on in wordpress.com/me/account sectiontitleinforming why the page cannot be edited or deletedNote: Since the implementation was added within a new directory (wp-posts-list) that it's not currently managed by Jetpack Fusion, the following diff also have to be reviewed: D61647-code.