Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#9573 closed defect (bug) (fixed)

Plugin translation of plugin metadata broken

Reported by: dd32's profile DD32 Owned by:
Milestone: 2.8 Priority: normal
Severity: normal Version: 2.7
Component: Plugins Keywords: has-patch commit
Focuses: Cc:

Description

As the title suggests, A Plugin can specify that its headers be translated via the TextDomain and DomainPath metadata headers, however, this is currently broken.

It appears that $plugin_file was forgotten to be passed to the function, causing the translation to never be loaded.

Patch attached mearly adds $plugin_file as the first arg. to the function, Since this function is designed for private calling only, backwards compatibility shouldn't be affected too much by this change.

Attachments (1)

9573.diff (1.4 KB) - added by DD32 16 years ago.

Download all attachments as: .zip

Change History (2)

@DD32
16 years ago

#1 @ryan
16 years ago

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

(In [11002]) Fix translation of plugin metadata. Props DD32. fixes #9573

Note: See TracTickets for help on using tickets.