Make WordPress Core

Opened 4 months ago

Last modified 6 weeks ago

#58973 accepted defect (bug)

Unwanted Section appears in the sidebar of Media Library after go back from Edit Image

Reported by: sruthi89's profile sruthi89 Owned by: joedolson's profile joedolson
Milestone: 6.5 Priority: normal
Severity: normal Version:
Component: Media Keywords: has-patch
Focuses: Cc:

Description

Unwanted Section with 'Actions' and 'Select or Upload Media' texts appears in the sidebar of Media Library and nothing happens on selection or click of the texts.

To find the issue,please go through the below steps.

1.Select Media Library from the 'File' block and then select an image from the list.
2.Before click on the 'select' button , select 'Edit Image' and then go back to Media Library section such as previous section.
3.Sidebar section with the specified texts appears.

Attachments (5)

Screenshot 2023-08-03 at 9.20.39 PM.png (379.6 KB) - added by nithi22 4 months ago.
I could reproduce this issue
Screenshot 2023-08-03 at 9.21.30 PM.png (525.0 KB) - added by nithi22 4 months ago.
After edit image
Screencast from 11.08.2023 14:54:20.webm (430.4 KB) - added by ivanzhuck 4 months ago.
Screencast from 11.08.2023 14:54:59.webm (552.6 KB) - added by ivanzhuck 4 months ago.
58973.diff (778 bytes) - added by dhruvishah2203 3 months ago.

Download all attachments as: .zip

Change History (15)

@nithi22
4 months ago

I could reproduce this issue

@nithi22
4 months ago

After edit image

#1 @swissspidy
4 months ago

  • Component changed from General to Media
  • Focuses performance removed
  • Keywords dev-feedback removed

#2 @sruthi89
4 months ago

  • Focuses performance added
  • Keywords dev-feedback added
  • Version set to trunk

#3 in reply to: ↑ description @sruthi89
4 months ago

Last edited 4 months ago by sruthi89 (previous) (diff)

#4 in reply to: ↑ description @sruthi89
4 months ago

Last edited 4 months ago by sruthi89 (previous) (diff)

#5 in reply to: ↑ description @sruthi89
4 months ago

Replying to sruthi89:

Unwanted Section with 'Actions' and 'Select or Upload Media' texts appears in the sidebar of Media Library and nothing happens on selection or click of the texts.

To find the issue,please go through the below steps.

1.Select Media Library from the 'File' block and then select an image from the list.
2.Before click on the 'select' button , select 'Edit Image' and then go back to Media Library section such as previous section.
3.Sidebar section with the specified texts appears.

Environment

WordPress: 6.3-RC3-56344
PHP: 7.4.33
Server: TasteWP-S4 Official/3.0.0
Database: mysqli (Server: 8.0.32-0ubuntu0.20.04.2 / Client: mysqlnd 7.4.33)
Browser: Firefox 116.0 (Windows 10/11)
Theme: Twenty Twenty-Three 1.2
MU-Plugins: None activated

Plugins:
WordPress Beta Tester 3.5.2

Steps to Reproduce
1.Select Media Library from the 'File' block or 'Image' block and then select an image from the list.
2.Before click on the 'select' button , select 'Edit Image' and then go back to Media Library section such as previous section.
3.Sidebar section with the specified texts appears.

Expected Results
There is no need of such sidebar section.

Actual Results
Sidebar section with just texts with no click action appears.

#6 @sruthi89
4 months ago

  • Focuses performance removed
  • Keywords dev-feedback removed

This ticket was mentioned in Slack in #core by priethor. View the logs.


4 months ago

#8 @joemcgill
4 months ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release
  • Version trunk deleted

I can reproduce this issue also with WP 6.2.2, so this seems to be an existing bug.

This ticket was mentioned in PR #4993 on WordPress/wordpress-develop by @ivanzhuck.


4 months ago
#9

  • Keywords has-patch added; needs-patch removed

Hi there!

I've added a small fix for the issue. Now, the Action menu shows only if it has more than one item, the same way like it happens here: wp.media.view.Menu.visibility

#10 @joedolson
6 weeks ago

  • Milestone changed from Future Release to 6.5
  • Owner set to joedolson
  • Status changed from new to accepted
Note: See TracTickets for help on using tickets.