--- a/wp/wp-admin/includes/template.php Fri Sep 05 18:40:08 2025 +0200
+++ b/wp/wp-admin/includes/template.php Fri Sep 05 18:52:52 2025 +0200
@@ -461,7 +461,7 @@
<legend>
<span class="hidden" id="editlegend"><?php _e( 'Edit Comment' ); ?></span>
<span class="hidden" id="replyhead"><?php _e( 'Reply to Comment' ); ?></span>
- <span class="hidden" id="addhead"><?php _e( 'Add New Comment' ); ?></span>
+ <span class="hidden" id="addhead"><?php _e( 'Add Comment' ); ?></span>
</legend>
<div id="replycontainer">
@@ -735,7 +735,7 @@
natcasesort( $keys );
}
?>
-<p><strong><?php _e( 'Add New Custom Field:' ); ?></strong></p>
+<p><strong><?php _e( 'Add Custom Field:' ); ?></strong></p>
<table id="newmeta">
<thead>
<tr>
@@ -850,19 +850,19 @@
$day = '<label><span class="screen-reader-text">' .
/* translators: Hidden accessibility text. */
__( 'Day' ) .
- '</span><input type="text" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>';
+ '</span><input type="text" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" inputmode="numeric" /></label>';
$year = '<label><span class="screen-reader-text">' .
/* translators: Hidden accessibility text. */
__( 'Year' ) .
- '</span><input type="text" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>';
+ '</span><input type="text" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" class="form-required" inputmode="numeric" /></label>';
$hour = '<label><span class="screen-reader-text">' .
/* translators: Hidden accessibility text. */
__( 'Hour' ) .
- '</span><input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>';
+ '</span><input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" inputmode="numeric" /></label>';
$minute = '<label><span class="screen-reader-text">' .
/* translators: Hidden accessibility text. */
__( 'Minute' ) .
- '</span><input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>';
+ '</span><input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" inputmode="numeric" /></label>';
echo '<div class="timestamp-wrap">';
/* translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute. */
@@ -1566,23 +1566,24 @@
++$i;
$hidden_class = in_array( $box['id'], $hidden, true ) ? 'hide-if-js' : '';
- $open_class = '';
+ $open_class = '';
+ $aria_expanded = 'false';
if ( ! $first_open && empty( $hidden_class ) ) {
- $first_open = true;
- $open_class = 'open';
+ $first_open = true;
+ $open_class = 'open';
+ $aria_expanded = 'true';
}
?>
<li class="control-section accordion-section <?php echo $hidden_class; ?> <?php echo $open_class; ?> <?php echo esc_attr( $box['id'] ); ?>" id="<?php echo esc_attr( $box['id'] ); ?>">
- <h3 class="accordion-section-title hndle" tabindex="0">
- <?php echo esc_html( $box['title'] ); ?>
- <span class="screen-reader-text">
- <?php
- /* translators: Hidden accessibility text. */
- _e( 'Press return or enter to open this section' );
- ?>
- </span>
+ <h3 class="accordion-section-title hndle">
+ <button type="button" class="accordion-trigger" aria-expanded="<?php echo $aria_expanded; ?>" aria-controls="<?php echo esc_attr( $box['id'] ); ?>-content">
+ <span class="accordion-title">
+ <?php echo esc_html( $box['title'] ); ?>
+ <span class="dashicons dashicons-arrow-down" aria-hidden="true"></span>
+ </span>
+ </button>
</h3>
- <div class="accordion-section-content <?php postbox_classes( $box['id'], $page ); ?>">
+ <div class="accordion-section-content <?php postbox_classes( $box['id'], $page ); ?>" id="<?php echo esc_attr( $box['id'] ); ?>-content">
<div class="inside">
<?php call_user_func( $box['callback'], $data_object, $box ); ?>
</div><!-- .inside -->
@@ -1783,12 +1784,11 @@
call_user_func( $section['callback'], $section );
}
- if ( ! isset( $wp_settings_fields ) || ! isset( $wp_settings_fields[ $page ] ) || ! isset( $wp_settings_fields[ $page ][ $section['id'] ] ) ) {
- continue;
+ if ( isset( $wp_settings_fields[ $page ][ $section['id'] ] ) ) {
+ echo '<table class="form-table" role="presentation">';
+ do_settings_fields( $page, $section['id'] );
+ echo '</table>';
}
- echo '<table class="form-table" role="presentation">';
- do_settings_fields( $page, $section['id'] );
- echo '</table>';
if ( '' !== $section['after_section'] ) {
echo wp_kses_post( $section['after_section'] );