WordPress.org

Make WordPress Core

#45489 closed enhancement (fixed)

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

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

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 21 months ago.
45489.2.diff (4.7 KB) - added by swissspidy 20 months ago.

Download all attachments as: .zip

Change History (11)

@swissspidy
21 months ago

#1 @swissspidy
21 months ago

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

#2 @ocean90
21 months ago

  • Keywords commit added; dev-feedback removed

👍

#3 @pento
20 months ago

  • Milestone changed from 5.0.1 to 5.0.2

#4 @swissspidy
20 months ago

  • Version set to 5.0

#5 @pento
20 months ago

  • Keywords needs-refresh added; commit removed
  • Milestone changed from 5.0.2 to 5.0.3

#6 @audrasjb
20 months 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.

@swissspidy
20 months ago

#7 @swissspidy
20 months ago

  • Keywords commit added; needs-refresh removed

#8 @ocean90
20 months ago

  • Milestone changed from 5.0.3 to 5.1

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

#9 @ocean90
20 months ago

  • Resolution set to fixed
  • Status changed from assigned to 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.