WordPress.org

Make WordPress Core

Opened 6 weeks ago

#54586 new defect (bug)

Avoid translating empty plugin headers

Reported by: Chouby Owned by:
Milestone: Awaiting Review Priority: normal
Severity: trivial Version: 3.4
Component: I18N Keywords: has-patch
Focuses: Cc:

Description

WPCS recommends not to translate empty strings. On the other hand, plugin headers may not all be filled, but since #19597, _get_plugin_data_markup_translate() translates them all whether they are empty or not.

I propose to check that the string is not empty before attempting to translate it.

Attachments (1)

54586.patch (981 bytes) - added by Chouby 6 weeks ago.

Download all attachments as: .zip

Change History (1)

@Chouby
6 weeks ago

Note: See TracTickets for help on using tickets.