[wp-trac] [WordPress Trac] #57913: Attachment pages need to have an "on" toggle

WordPress Trac noreply at wordpress.org
Mon Sep 25 21:59:08 UTC 2023


#57913: Attachment pages need to have an "on" toggle
-------------------------------------------------+-------------------------
 Reporter:  joostdevalk                          |       Owner:
                                                 |  SergeyBiryukov
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.4
Component:  Media                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-docs needs-testing   |     Focuses:
  has-testing-info needs-dev-note                |
-------------------------------------------------+-------------------------

Comment (by ironprogrammer):

 == Test Report
 Patch tested:
 [https://core.trac.wordpress.org/attachment/ticket/57913/57913.3.diff
 57913.3.diff] refresh

 === Environment
 - Hardware: MacBook Pro Apple M1 Pro
 - OS: macOS 13.5.2
 - Browser: Safari 16.6
 - Server: nginx/1.25.2
 - PHP: 7.4.33
 - WordPress: 6.4-alpha-56267-src

 === Actual Results
 - ✅ From the media library ''list'' view: "Edit Media" (e.g. `/wp-
 admin/post.php?post=1262&action=edit`), the admin bar's view media link
 changes to reflect the status of `wp_attachment_pages_enabled `.
 - ✅ From the media library ''grid'' view: "Attachment details" (e.g.
 `/wp-admin/upload.php?item=1262`), the attachment action link reflects the
 status of `wp_attachment_pages_enabled `.

 === Additional Information
 - Used `wp option set wp_attachment_pages_enabled 0|1` to toggle the
 attachment pages setting.
 - The different views are accessed via the list or grid options:

   [[Image(https://cldup.com/r1fb1Wc3GL.thumb.jpg, 200px)]]

 === Supplemental Artifacts
 ''Figure 1: **Edit Media** admin bar''
 [[Image(https://cldup.com/qh6ThQxz0j.gif)]]

 ''Figure 2: **Attachment details** action link''
 [[Image(https://cldup.com/jo0XJtDO97.gif)]]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57913#comment:55>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list