You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p><?php\esc_html_e( 'Choosing the right date format helps your visitors instantly understand when something was published without confusion or guessing. It also makes your site feel more familiar and trustworthy, especially if your audience is local.', 'progress-planner' ); ?></p>
@@ -124,7 +136,7 @@ public function print_popover_instructions() {
124
136
\printf(
125
137
/* translators: %s: The date format. */
126
138
\esc_html__( 'The date format currently set matches the default format for your site language (%s). Therefore, we expect it\'s set correctly. But can you have a quick look, just to be sure?', 'progress-planner' ),
127
-
\esc_html( \get_option( 'date_format' ) )
139
+
\esc_html( $lang_name )
128
140
);
129
141
?>
130
142
</p>
@@ -143,12 +155,24 @@ public function print_popover_instructions() {
143
155
* @return void
144
156
*/
145
157
publicfunctionprint_popover_form_contents() {
158
+
159
+
// Default date format, based on the user's locale.
160
+
$localized_default_date_format = \__( 'F j, Y' ); // phpcs:ignore WordPress.WP.I18n.MissingArgDomain -- We want localized date format from WP Core.
0 commit comments