[wp-trac] [WordPress Trac] #56855: Featured Image bug in 6.0.3

WordPress Trac noreply at wordpress.org
Fri Oct 21 00:57:22 UTC 2022


#56855: Featured Image bug in 6.0.3
-------------------------------------------------+-------------------------
 Reporter:  raduiason                            |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  6.1
Component:  Media                                |     Version:  6.0.3
 Severity:  minor                                |  Resolution:
 Keywords:  has-patch needs-testing has-         |     Focuses:
  testing-info has-unit-tests                    |
-------------------------------------------------+-------------------------
Changes (by ironprogrammer):

 * keywords:  has-patch needs-testing => has-patch needs-testing has-
     testing-info has-unit-tests


Comment:

 == Test Report

 === Steps to Reproduce
 1. SETUP: Apply setup patch from comment:12. This is required to apply the
 `safecss_filter_attr()` fix from 6.0.3.
 2. Create a new post.
 3. Insert a Post Featured Image block, add an image to the block (should
 be taller than 100px).
 4. Set the height to 100px and scale to "Cover".
 5. Publish post and view the new post.
 6. 🐞 Observe that the image in the block is stretched in the frontend
 (and preview).

 === Expected Results
 - ✅ Block's image in frontend is set to 100x100px, instead of "object-
 fit: cover". (See Figure 1.)

 ----

 Patch tested: attachment:56855.1.diff 👍🏻

 === Environment
 - Hardware: MacBook Pro Apple M1 Pro
 - OS: macOS 12.6
 - Browser: Safari 16.0
 - Server: nginx/1.23.1
 - PHP: 7.4.32
 - WordPress: 6.2-alpha-54642-src
 - Theme: twentytwentythree v1.0

 === Actual Results
 - ✅ Block's image in frontend is not stretched, and properly reflects
 "object-fit: cover". (See Figure 2.)

 === Supplemental Artifacts
 [[Image(https://cldup.com/l1HVtxKGjy.png, 75%)]]
 ''Figure 1: Reproducing error.''

 [[Image(https://cldup.com/ACg2o2cs-o.png, 75%)]]
 ''Figure 2: After patch.''

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


More information about the wp-trac mailing list