Make WordPress Core

Opened 3 years ago

Last modified 3 months ago

#58037 new enhancement

Use a placeholder icon when an icon is unable to load/be found in the plugin directory

Reported by: nekojonez's profile NekoJonez Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version:
Component: Plugins Keywords: needs-patch dev-feedback 2nd-opinion
Focuses: ui, administration Cc:

Description

Like shown in the screenshot, sometimes when going through the plugin directory in your WP install... for some reason a plugin icon is unable to load since there isn't one/it's missing/it's too big/blocked by AV/... In that case, it would be nice that some placeholder art is shown like the WP logo or the one in "second screen".

Attachments (2)

Opera Momentopname_2023-04-01_122245.png (66.6 KB) - added by NekoJonez 3 years ago.
second screen.png (34.7 KB) - added by NekoJonez 3 years ago.

Download all attachments as: .zip

Change History (5)

#1 @audrasjb
3 years ago

  • Keywords needs-patch added

#2 @nikunj8866
3 months ago

  • Keywords dev-feedback added

@audrasjb I don't think this needs a Core patch.

Plugin icons in wp-admin are pulled from plugins_api, where the recommended size is 256×256 px, and smaller variants (128×128, 64×64) are generated automatically. SVG is also supported. (Ref: Plugin Icons documentationhttps://make.wordpress.org/plugins/2014/08/21/plugin-icons/). These aren't "too big" and Core already handles appropriate sizing.

The only time a broken image is seen in wp-admin is when the request fails due to a local network issue (e.g. connectivity problems, firewall, ad-blocker, antivirus). In those cases, Core can't fix the root problem by replacing the broken image with a local placeholder would only mask a temporary connectivity issue.

#3 @nikunj8866
3 months ago

  • Keywords 2nd-opinion added
Note: See TracTickets for help on using tickets.