Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#50405 closed defect (bug) (fixed)

Auto-update errors are not displayed on the Themes screen

Reported by: azaozz's profile azaozz Owned by: azaozz's profile azaozz
Milestone: 5.5 Priority: normal
Severity: normal Version: 5.5
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

The js expects an element with class="notice error" that doesn't exist in the theme overlay.

Attachments (5)

50405.diff (923 bytes) - added by azaozz 6 years ago.
50405.png (23.7 KB) - added by afercia 6 years ago.
White notice on white background
50405.1.diff (3.1 KB) - added by azaozz 6 years ago.
plugins-screen.png (17.4 KB) - added by azaozz 6 years ago.
Plugins screen error notices with 50405.1.diff.
themes-screen.png (18.8 KB) - added by azaozz 6 years ago.
Themes screen error notice with 50405.1.diff.

Download all attachments as: .zip

Change History (9)

@azaozz
6 years ago

#1 @azaozz
6 years ago

  • Keywords has-patch added

50405.diff seems to fix this but overlaps with #50280. Will refresh after 50280 is done.

#2 @afercia
6 years ago

Good catch. Also, I think the correct usage of the class names for the admin notices is by "stacking" them e.g. notice notice-error. The class error is legacy and should not be used.

I think there's one more occurrence to adjust in WP_MS_Themes_List_Table.

Also, if I'm not wrong, these error notices may appear on a white background (depending on which row of the zebra-striped table) so I'd propose to consider the additional notice-alt class. See screenshot below (white notice on white background).

@afercia
6 years ago

White notice on white background

@azaozz
6 years ago

#3 @azaozz
6 years ago

The class error is legacy and should not be used.

Right.

there's one more occurrence to adjust

Yes, fixed.

these error notices may appear on a white background (depending on which row of the zebra-striped table) so I'd propose to consider the additional notice-alt class.

Yes, sounds good.

In 50405.1.diff:

  • Use the notice notice-error notice-alt inline classes for the error notices and adjust the js to match.
  • Refresh the fix for displaying of error notices on the Themes screen after [48077].

@azaozz
6 years ago

Plugins screen error notices with 50405.1.diff.

@azaozz
6 years ago

Themes screen error notice with 50405.1.diff.

#4 @azaozz
6 years ago

  • Owner set to azaozz
  • Resolution set to fixed
  • Status changed from new to closed

In 48092:

Plugins and Themes Auto-Updates:

  • Fix displaying of errors on the Themes screen.
  • Correct the classes used for the error messages, and use notice-alt as notices are mostly shown on a white background.

Props afercia, azaozz.
Fixes #50405.

Note: See TracTickets for help on using tickets.