#45191 closed defect (bug) (fixed)
Remove the 'default' textdomain on __() translation functions introduced into script-loader.php for 5.0
| Reported by: | garrett-eclipse | Owned by: | pento |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.0 |
| Component: | I18N | Version: | 5.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | coding-standards |
Description
Found in the 5.0 branch in the /wp-includes/script-loader.php is the use of 'default' as the textdomain for the () translation functions;
https://core.trac.wordpress.org/browser/branches/5.0/src/wp-includes/script-loader.php#L405-414
<?php 'future' => __( '%s from now', 'default' ), /* translators: %s: duration */ 'past' => __( '%s ago', 'default' ), ), ), 'formats' => array( 'time' => get_option( 'time_format', __( 'g:i a', 'default' ) ), 'date' => get_option( 'date_format', __( 'F j, Y', 'default' ) ), 'datetime' => __( 'F j, Y g:i a', 'default' ), 'datetimeAbbreviated' => __( 'M j, Y g:i a', 'default' ),
These should be removed as unnecessary.
Attachments (1)
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Working Patch.