Make WordPress Core

Opened 13 days ago

Last modified 12 days ago

#52212 reopened defect (bug)

Twenty Twenty-One: twenty_twenty_one_get_attachment_image_attributes affects the admin panel

Reported by: denisco Owned by: SergeyBiryukov
Milestone: 5.6.1 Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: has-patch fixed-major
Focuses: Cc:


Twenty Twenty-One v1.1

The function twenty_twenty_one_get_attachment_image_attributes affects the attributes of images in the admin panel.

I faced this problem while developing a plugin for comments (I attached a screenshot).

I think we need to add an additional condition to reduce the effect of this function.

Attachments (2)

52212.png (429.1 KB) - added by denisco 13 days ago.
52212.diff (585 bytes) - added by denisco 13 days ago.

Download all attachments as: .zip

Change History (7)

13 days ago

13 days ago

#1 @denisco
13 days ago

  • Keywords has-patch added

#2 @SergeyBiryukov
12 days ago

  • Milestone changed from Awaiting Review to 5.7

#3 @SergeyBiryukov
12 days ago

  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#4 @SergeyBiryukov
12 days ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 49930:

Twenty Twenty-One: Make sure filtering attachment image attributes only affects front end and not the admin area.

Props denisco.
Fixes #52212.

#5 @SergeyBiryukov
12 days ago

  • Keywords fixed-major added
  • Milestone changed from 5.7 to 5.6.1
  • Resolution fixed deleted
  • Status changed from closed to reopened

Reopening for 5.6.1 consideration.

Note: See TracTickets for help on using tickets.