[wp-trac] [WordPress Trac] #50040: Localize the jQuery datepicker when enqueued in the footer
WordPress Trac
noreply at wordpress.org
Thu Jan 1 12:39:12 UTC 2026
#50040: Localize the jQuery datepicker when enqueued in the footer
-------------------------------------------------+-------------------------
Reporter: jadpm | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: I18N | Version:
Severity: normal | Resolution:
Keywords: good-first-bug reporter-feedback | Focuses:
has-patch needs-testing |
-------------------------------------------------+-------------------------
Changes (by akshaykungiri):
* keywords: needs-patch good-first-bug reporter-feedback => good-first-bug
reporter-feedback has-patch needs-testing
Comment:
== **Reproduction Report**
**Description**
This report documents testing performed to validate whether the reported
issue can be reproduced.
**Environment**
- WordPress: trunk (latest)
- PHP: 8.2
- Server: Local development environment
- Database: MySQL
- Browsers: Chrome, Edge
- OS: (Window 10)
- Theme: Default theme (latest)
- MU Plugins: None
- Plugins: Custom test plugin (see below)
**Steps Taken**
- Changed the site language to Hindi, then repeated the test with
Gujarati.
- Created and activated a custom test plugin to enqueue jQuery UI
Datepicker in the footer:
{{{
<?php
/**
* Plugin Name: Datepicker Footer Test
*/
add_action( 'wp_enqueue_scripts', function () {
wp_enqueue_script(
'jquery-ui-datepicker',
false,
array( 'jquery-ui-core' ),
false,
true // Enqueue in footer
);
} );
add_action( 'wp_footer', function () {
?>
<input type="text" id="test-datepicker" />
<script>
jQuery(function($){
$('#test-datepicker').datepicker();
});
</script>
<?php
} );
}}}
- Visited the frontend and initialized the datepicker input.
- Tested the behavior in Chrome and Edge browsers.
- Screenshots were taken during testing.
[[Image(https://drive.google.com/file/d/1stRdVk04Lc_wnB5PiRIp8dQqDwNYilQ3/view?usp=sharing)]]
[[Image(https://drive.google.com/file/d/1N6WGpeiwx1hWPqLUO2cisjv-
y5SA8u8Y/view?usp=sharing)]]
**Actual Results**
❌ The reported issue could not be reproduced.
The datepicker loaded in the footer was localized correctly in both Hindi
and Gujarati without applying the patch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50040#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list