Changeset 55276 for trunk/src/wp-admin/includes/meta-boxes.php
- Timestamp:
- 02/07/2023 05:08:26 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/meta-boxes.php
r55113 r55276 77 77 '%1$s<span class="screen-reader-text"> %2$s</span>', 78 78 $preview_button_text, 79 /* translators: Accessibility text. */79 /* translators: Hidden accessibility text. */ 80 80 __( '(opens in a new tab)' ) 81 81 ); … … 133 133 } 134 134 ?> 135 <a href="#post_status" <?php echo $private_style; ?> class="edit-post-status hide-if-no-js" role="button"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text"><?php _e( 'Edit status' ); ?></span></a> 135 <a href="#post_status" <?php echo $private_style; ?> class="edit-post-status hide-if-no-js" role="button"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text"> 136 <?php 137 /* translators: Hidden accessibility text. */ 138 _e( 'Edit status' ); 139 ?> 140 </span></a> 136 141 137 142 <div id="post-status-select" class="hide-if-js"> 138 143 <input type="hidden" name="hidden_post_status" id="hidden_post_status" value="<?php echo esc_attr( ( 'auto-draft' === $post->post_status ) ? 'draft' : $post->post_status ); ?>" /> 139 <label for="post_status" class="screen-reader-text"><?php _e( 'Set status' ); ?></label> 144 <label for="post_status" class="screen-reader-text"> 145 <?php 146 /* translators: Hidden accessibility text. */ 147 _e( 'Set status' ); 148 ?> 149 </label> 140 150 <select name="post_status" id="post_status"> 141 151 <?php if ( 'publish' === $post->post_status ) : ?> … … 185 195 186 196 <?php if ( $can_publish ) { ?> 187 <a href="#visibility" class="edit-visibility hide-if-no-js" role="button"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text"><?php _e( 'Edit visibility' ); ?></span></a> 197 <a href="#visibility" class="edit-visibility hide-if-no-js" role="button"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text"> 198 <?php 199 /* translators: Hidden accessibility text. */ 200 _e( 'Edit visibility' ); 201 ?> 202 </span></a> 188 203 189 204 <div id="post-visibility-select" class="hide-if-js"> … … 258 273 printf( __( 'Revisions: %s' ), '<b>' . number_format_i18n( $args['args']['revisions_count'] ) . '</b>' ); 259 274 ?> 260 <a class="hide-if-no-js" href="<?php echo esc_url( get_edit_post_link( $args['args']['revision_id'] ) ); ?>"><span aria-hidden="true"><?php _ex( 'Browse', 'revisions' ); ?></span> <span class="screen-reader-text"><?php _e( 'Browse revisions' ); ?></span></a> 275 <a class="hide-if-no-js" href="<?php echo esc_url( get_edit_post_link( $args['args']['revision_id'] ) ); ?>"><span aria-hidden="true"><?php _ex( 'Browse', 'revisions' ); ?></span> <span class="screen-reader-text"> 276 <?php 277 /* translators: Hidden accessibility text. */ 278 _e( 'Browse revisions' ); 279 ?> 280 </span></a> 261 281 </div> 262 282 <?php … … 271 291 <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" role="button"> 272 292 <span aria-hidden="true"><?php _e( 'Edit' ); ?></span> 273 <span class="screen-reader-text"><?php _e( 'Edit date and time' ); ?></span> 293 <span class="screen-reader-text"> 294 <?php 295 /* translators: Hidden accessibility text. */ 296 _e( 'Edit date and time' ); 297 ?> 298 </span> 274 299 </a> 275 300 <fieldset id="timestampdiv" class="hide-if-js"> 276 <legend class="screen-reader-text"><?php _e( 'Date and time' ); ?></legend> 301 <legend class="screen-reader-text"> 302 <?php 303 /* translators: Hidden accessibility text. */ 304 _e( 'Date and time' ); 305 ?> 306 </legend> 277 307 <?php touch_time( ( 'edit' === $action ), 1 ); ?> 278 308 </fieldset> … … 493 523 <div id="post-formats-select"> 494 524 <fieldset> 495 <legend class="screen-reader-text"><?php _e( 'Post Formats' ); ?></legend> 525 <legend class="screen-reader-text"> 526 <?php 527 /* translators: Hidden accessibility text. */ 528 _e( 'Post Formats' ); 529 ?> 530 </legend> 496 531 <input type="radio" name="post_format" class="post-format" id="post-format-0" value="0" <?php checked( $post_format, '0' ); ?> /> <label for="post-format-0" class="post-format-icon post-format-standard"><?php echo get_post_format_string( 'standard' ); ?></label> 497 532 <?php foreach ( $post_formats[0] as $format ) : ?> … … 701 736 function post_excerpt_meta_box( $post ) { 702 737 ?> 703 <label class="screen-reader-text" for="excerpt"><?php _e( 'Excerpt' ); ?></label><textarea rows="1" cols="40" name="excerpt" id="excerpt"><?php echo $post->post_excerpt; // textarea_escaped ?></textarea> 738 <label class="screen-reader-text" for="excerpt"> 739 <?php 740 /* translators: Hidden accessibility text. */ 741 _e( 'Excerpt' ); 742 ?> 743 </label><textarea rows="1" cols="40" name="excerpt" id="excerpt"><?php echo $post->post_excerpt; // textarea_escaped ?></textarea> 704 744 <p> 705 745 <?php … … 889 929 $editable_slug = apply_filters( 'editable_slug', $post->post_name, $post ); 890 930 ?> 891 <label class="screen-reader-text" for="post_name"><?php _e( 'Slug' ); ?></label><input name="post_name" type="text" class="large-text" id="post_name" value="<?php echo esc_attr( $editable_slug ); ?>" /> 931 <label class="screen-reader-text" for="post_name"> 932 <?php 933 /* translators: Hidden accessibility text. */ 934 _e( 'Slug' ); 935 ?> 936 </label><input name="post_name" type="text" class="large-text" id="post_name" value="<?php echo esc_attr( $editable_slug ); ?>" /> 892 937 <?php 893 938 } … … 907 952 $post_type_object = get_post_type_object( $post->post_type ); 908 953 ?> 909 <label class="screen-reader-text" for="post_author_override"><?php _e( 'Author' ); ?></label> 954 <label class="screen-reader-text" for="post_author_override"> 955 <?php 956 /* translators: Hidden accessibility text. */ 957 _e( 'Author' ); 958 ?> 959 </label> 910 960 <?php 911 961 wp_dropdown_users( … … 1144 1194 <a id="category-add-toggle" href="#category-add" class="taxonomy-add-new"><?php _e( '+ Add New Category' ); ?></a> 1145 1195 <p id="link-category-add" class="wp-hidden-child"> 1146 <label class="screen-reader-text" for="newcat"><?php _e( '+ Add New Category' ); ?></label> 1196 <label class="screen-reader-text" for="newcat"> 1197 <?php 1198 /* translators: Hidden accessibility text. */ 1199 _e( '+ Add New Category' ); 1200 ?> 1201 </label> 1147 1202 <input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" aria-required="true" /> 1148 1203 <input type="button" id="link-category-add-submit" data-wp-lists="add:categorychecklist:link-category-add" class="button" value="<?php esc_attr_e( 'Add' ); ?>" /> … … 1165 1220 1166 1221 ?> 1167 <fieldset><legend class="screen-reader-text"><span><?php _e( 'Target' ); ?></span></legend> 1222 <fieldset><legend class="screen-reader-text"><span> 1223 <?php 1224 /* translators: Hidden accessibility text. */ 1225 _e( 'Target' ); 1226 ?> 1227 </span></legend> 1168 1228 <p><label for="link_target_blank" class="selectit"> 1169 1229 <input id="link_target_blank" type="radio" name="link_target" value="_blank" <?php echo ( isset( $link->link_target ) && ( '_blank' === $link->link_target ) ? 'checked="checked"' : '' ); ?> /> … … 1255 1315 <tr> 1256 1316 <th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'identity' ); ?></th> 1257 <td><fieldset><legend class="screen-reader-text"><span><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'identity' ); ?></span></legend> 1317 <td><fieldset> 1318 <legend class="screen-reader-text"><span> 1319 <?php 1320 /* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */ 1321 _e( 'identity' ); 1322 ?> 1323 </span></legend> 1258 1324 <label for="me"> 1259 1325 <input type="checkbox" name="identity" value="me" id="me" <?php xfn_check( 'identity', 'me' ); ?> /> … … 1263 1329 <tr> 1264 1330 <th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'friendship' ); ?></th> 1265 <td><fieldset><legend class="screen-reader-text"><span><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'friendship' ); ?></span></legend> 1331 <td><fieldset> 1332 <legend class="screen-reader-text"><span> 1333 <?php 1334 /* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */ 1335 _e( 'friendship' ); 1336 ?> 1337 </span></legend> 1266 1338 <label for="contact"> 1267 1339 <input class="valinp" type="radio" name="friendship" value="contact" id="contact" <?php xfn_check( 'friendship', 'contact' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'contact' ); ?> … … 1280 1352 <tr> 1281 1353 <th scope="row"> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'physical' ); ?> </th> 1282 <td><fieldset><legend class="screen-reader-text"><span><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'physical' ); ?></span></legend> 1354 <td><fieldset> 1355 <legend class="screen-reader-text"><span> 1356 <?php 1357 /* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */ 1358 _e( 'physical' ); 1359 ?> 1360 </span></legend> 1283 1361 <label for="met"> 1284 1362 <input class="valinp" type="checkbox" name="physical" value="met" id="met" <?php xfn_check( 'physical', 'met' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'met' ); ?> … … 1288 1366 <tr> 1289 1367 <th scope="row"> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'professional' ); ?> </th> 1290 <td><fieldset><legend class="screen-reader-text"><span><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'professional' ); ?></span></legend> 1368 <td><fieldset> 1369 <legend class="screen-reader-text"><span> 1370 <?php 1371 /* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */ 1372 _e( 'professional' ); 1373 ?> 1374 </span></legend> 1291 1375 <label for="co-worker"> 1292 1376 <input class="valinp" type="checkbox" name="professional" value="co-worker" id="co-worker" <?php xfn_check( 'professional', 'co-worker' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'co-worker' ); ?> … … 1299 1383 <tr> 1300 1384 <th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'geographical' ); ?></th> 1301 <td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'geographical' ); ?> </span></legend> 1385 <td><fieldset> 1386 <legend class="screen-reader-text"><span> 1387 <?php 1388 /* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */ 1389 _e( 'geographical' ); 1390 ?> 1391 </span></legend> 1302 1392 <label for="co-resident"> 1303 1393 <input class="valinp" type="radio" name="geographical" value="co-resident" id="co-resident" <?php xfn_check( 'geographical', 'co-resident' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'co-resident' ); ?> … … 1313 1403 <tr> 1314 1404 <th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'family' ); ?></th> 1315 <td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'family' ); ?> </span></legend> 1405 <td><fieldset> 1406 <legend class="screen-reader-text"><span> 1407 <?php 1408 /* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */ 1409 _e( 'family' ); 1410 ?> 1411 </span></legend> 1316 1412 <label for="child"> 1317 1413 <input class="valinp" type="radio" name="family" value="child" id="child" <?php xfn_check( 'family', 'child' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'child' ); ?> … … 1336 1432 <tr> 1337 1433 <th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'romantic' ); ?></th> 1338 <td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'romantic' ); ?> </span></legend> 1434 <td><fieldset> 1435 <legend class="screen-reader-text"><span> 1436 <?php 1437 /* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */ 1438 _e( 'romantic' ); 1439 ?> 1440 </span></legend> 1339 1441 <label for="muse"> 1340 1442 <input class="valinp" type="checkbox" name="romantic" value="muse" id="muse" <?php xfn_check( 'romantic', 'muse' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'muse' ); ?>
Note: See TracChangeset
for help on using the changeset viewer.