Remove unnecessary “Comments” column when attachment pages are disabled#10471
Remove unnecessary “Comments” column when attachment pages are disabled#10471AKSHAT2802 wants to merge 3 commits intoWordPress:trunkfrom
Conversation
…tachment pages option
|
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 Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
Co-authored-by: Weston Ruter <westonruter@gmail.com>
|
I'll commit this after the |
…ges are not enabled. Developed in #10471 Follow-up to [56657]. Props akshat2802, knutsp, shailu25, soyebsalar01, westonruter. See #57913. Fixes #64201. git-svn-id: https://develop.svn.wordpress.org/trunk@61268 602fd350-edb4-49c9-b593-d223f7449a82
…ges are not enabled. Developed in WordPress/wordpress-develop#10471 Follow-up to [56657]. Props akshat2802, knutsp, shailu25, soyebsalar01, westonruter. See #57913. Fixes #64201. Built from https://develop.svn.wordpress.org/trunk@61268 git-svn-id: http://core.svn.wordpress.org/trunk@60580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
…ges are not enabled. Developed in WordPress/wordpress-develop#10471 Follow-up to [56657]. Props akshat2802, knutsp, shailu25, soyebsalar01, westonruter. See #57913. Fixes #64201. Built from https://develop.svn.wordpress.org/trunk@61268 git-svn-id: https://core.svn.wordpress.org/trunk@60580 1a063a9b-81f0-0310-95a4-ce76da25c4cd


PR for Trac ticket: https://core.trac.wordpress.org/ticket/64201
This PR removes the “Comments” column from the Media Library when attachment pages are disabled.
When the
wp_attachment_pages_enabledoption is empty or evaluates to false, attachments no longer have dedicated front-end pages. In such cases, displaying the “Comments” column in the Media Library becomes redundant, since comments are not accessible or visible on attachment pages.Benefits:
Prevents confusion for users by hiding irrelevant UI
Keeps the Media Library interface cleaner
Aligns with the expected behaviour when attachment pages are disabled