Make WordPress Core

Opened 22 months ago

Closed 21 months ago

Last modified 21 months ago

#36706 closed enhancement (fixed)

Add fallback for TextDomain field in get_plugin_data()

Reported by: ocean90 Owned by: ocean90
Milestone: 4.6 Priority: normal
Severity: normal Version:
Component: I18N Keywords: has-patch
Focuses: Cc:


Related: #34114

There are a lot of plugins which don't declare the Text Domain field in the plugin header. If the plugin is on translate.w.org its headers are translated by default. Let's help those plugins so the translations are getting used.

Attachments (1)

36706.patch (800 bytes) - added by ocean90 22 months ago.

Download all attachments as: .zip

Change History (3)

22 months ago

#1 @ocean90
21 months ago

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

In 37562:

Plugins: In get_plugin_data() use the plugin slug for the text domain when no text domain is defined in the header.

Fixes #36706.

#2 @ocean90
21 months ago

In 37580:

Plugins: Fix order of arguments for the strpos() function added in [37562].

See #36706.

Note: See TracTickets for help on using tickets.