WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years 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:

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

Download all attachments as: .zip

Change History (3)

@ocean90
5 years ago

#1 @ocean90
5 years 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
5 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.