-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Update: Pages: Trash view should default to table layout try 2. #63652
Update: Pages: Trash view should default to table layout try 2. #63652
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +238 B (+0.01%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
It's working for me, thanks for applying the same on the Posts data view 👍 |
…Press#63652) Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
Part of #63128.
This is the second attempt for #63138, which was previously reverted at #63481 due to causing a test failure on the trunk. The test failure did not occur on the branch itself.
The test failure was legitimate; the issue was that when switching from the "All pages" with table layout to the trash view, the table layout was maintained. However, when switching back to "All pages," the layout switched to list view instead of maintaining the table view.
This PR resolves that issue. Now, we have logic in place to ensure that when an automatic switch to table layout occurs because the draft view becomes active, the system will switch back to the previously active view instead of defaulting to the list view.
cc: @WordPress/gutenberg-design, I would appreciate, if someone could retest and ensure everything is working as expected. Thank you in advance 😊
Testing Instructions
Open
/wp-admin/site-editor.php?postType=page
.Switch to the trash view, and confirm that the table layout becomes active.
Change to the all pages view and ensure that the list layout becomes active again.
Next, open
wp-admin/site-editor.php?postType=page&layout=table
.Switch to the trash view and verify that the table layout remains active.
Switch to the all pages view and confirm that the table layout continues to remain active.