Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#45489 closed enhancement (fixed)

Make domain argument optional in wp_set_script_translations() / WP_Scripts::set_translations()

Reported by: swissspidy Owned by: swissspidy
Priority: normal Milestone: 5.1
Component: I18N Version: 5.0
Severity: normal Keywords: has-patch commit
Cc: Focuses:

Description

The $domain should default to default, just like it does in all the other l10n functions we have in core.

Attachments (2)

45489.diff​ (4.2 KB ) - added by swissspidy 8 years ago.
45489.2.diff​ (4.7 KB ) - added by swissspidy 8 years ago.

Download all attachments as: .zip

Change History (11)

#1 @swissspidy
8 years ago

  • Keywords has-patch dev-feedback added; needs-patch removed

#2 @ocean90
8 years ago

  • Keywords commit added; dev-feedback removed

👍

#3 @pento
8 years ago

  • Milestone 5.0.1 → 5.0.2

#4 @swissspidy
8 years ago

  • Version → 5.0

#5 @pento
8 years ago

  • Keywords needs-refresh added; commit removed
  • Milestone 5.0.2 → 5.0.3

#6 @audrasjb
8 years ago

Hi,

5.0.3 is going to be released in a couple of weeks. We are currently sorting the remaining tickets in the milestone. The ticket is sorted in milestone 5.0.3, but requires an @since refresh and a commit/backport to the associated branch. That would be great to have a refreshed patch asap.

#7 @swissspidy
8 years ago

  • Keywords commit added; needs-refresh removed

#8 @ocean90
8 years ago

  • Milestone 5.0.3 → 5.1

Having this only in the next major release should be good enough.

#9 @ocean90
8 years ago

  • Resolution → fixed
  • Status assigned → closed

In 44395:

I18N: Make domain argument optional in wp_set_script_translations() / WP_Scripts::set_translations().

Props swissspidy.
Fixes #45489.

Note: See TracTickets for help on using tickets.