Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#36706 closed enhancement (fixed)

Add fallback for TextDomain field in get_plugin_data()

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

Description

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 10 years ago.

Download all attachments as: .zip

Change History (3)

@ocean90
10 years ago

#1 @ocean90
10 years ago

  • Owner set to ocean90
  • Resolutionfixed
  • Status newclosed

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
10 years 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.