Changeset 45835 for branches/5.2
- Timestamp:
- 08/19/2019 04:14:38 AM (5 years ago)
- Location:
- branches/5.2
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.2
-
branches/5.2/src/wp-admin/edit-form-comment.php
r44712 r45835 44 44 <fieldset> 45 45 <legend class="screen-reader-text"><?php _e( 'Comment Author' ); ?></legend> 46 <table class="form-table editcomment" >46 <table class="form-table editcomment" role="presentation"> 47 47 <tbody> 48 48 <tr> -
branches/5.2/src/wp-admin/includes/ms.php
r45834 r45835 985 985 } else { 986 986 ?> 987 <td>< fieldset><p><legend><?php _e( 'User has no sites or content and will be deleted.' ); ?></legend></p>987 <td><p><?php _e( 'User has no sites or content and will be deleted.' ); ?></p></td> 988 988 <?php } ?> 989 989 </tr> -
branches/5.2/src/wp-admin/includes/network.php
r45834 r45835 348 348 <?php endif; ?> 349 349 <tr> 350 <th scope='row'>< ?php esc_html_e( 'Network Title' ); ?></th>351 <td> 352 <input name='sitename' type='text' size='45' value='<?php echo esc_attr( $site_name ); ?>' />350 <th scope='row'><label for="sitename"><?php esc_html_e( 'Network Title' ); ?></label></th> 351 <td> 352 <input name='sitename' id='sitename' type='text' size='45' value='<?php echo esc_attr( $site_name ); ?>' /> 353 353 <p class="description"> 354 354 <?php _e( 'What would you like to call your network?' ); ?> … … 357 357 </tr> 358 358 <tr> 359 <th scope='row'>< ?php esc_html_e( 'Network Admin Email' ); ?></th>360 <td> 361 <input name='email' type='text' size='45' value='<?php echo esc_attr( $admin_email ); ?>' />359 <th scope='row'><label for="email"><?php esc_html_e( 'Network Admin Email' ); ?></label></th> 360 <td> 361 <input name='email' id='email' type='text' size='45' value='<?php echo esc_attr( $admin_email ); ?>' /> 362 362 <p class="description"> 363 363 <?php _e( 'Your email address.' ); ?> -
branches/5.2/src/wp-admin/network/settings.php
r45834 r45835 453 453 * @param string[] $admin_menus Associative array of the menu items available. 454 454 */ 455 $menu_items = apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' ) ) ); 456 $fieldset_end = ''; 457 if ( count( (array) $menu_items ) > 1 ) { 458 echo '<fieldset><legend class="screen-reader-text">' . __( 'Enable menus' ) . '</legend>'; 459 $fieldset_end = '</fieldset>'; 460 } 455 $menu_items = apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' ) ) ); 456 457 echo '<fieldset><legend class="screen-reader-text">' . __( 'Enable menus' ) . '</legend>'; 458 461 459 foreach ( (array) $menu_items as $key => $val ) { 462 460 echo "<label><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . ( isset( $menu_perms[ $key ] ) ? checked( $menu_perms[ $key ], '1', false ) : '' ) . ' /> ' . esc_html( $val ) . '</label><br/>'; 463 461 } 464 echo $fieldset_end; 462 463 echo '</fieldset>'; 465 464 ?> 466 465 </td> -
branches/5.2/src/wp-admin/network/site-info.php
r45834 r45835 167 167 ?> 168 168 <tr class="form-field form-required"> 169 <th scope="row">< ?php _e( 'Site Address (URL)' ); ?></th>169 <th scope="row"><label for="url"><?php _e( 'Site Address (URL)' ); ?></label></th> 170 170 <td><input name="blog[url]" type="text" id="url" value="<?php echo $parsed_scheme . '://' . esc_attr( $details->domain ) . esc_attr( $details->path ); ?>" /></td> 171 171 </tr> -
branches/5.2/src/wp-admin/network/site-new.php
r45834 r45835 282 282 </tr> 283 283 <tr class="form-field"> 284 <td colspan="2" ><p id="site-admin-email"><?php _e( 'A new user will be created if the above email address is not in the database.' ); ?><br /><?php _e( 'The username and a link to set the password will be mailed to this email address.' ); ?></p></td>284 <td colspan="2" class="td-full"><p id="site-admin-email"><?php _e( 'A new user will be created if the above email address is not in the database.' ); ?><br /><?php _e( 'The username and a link to set the password will be mailed to this email address.' ); ?></p></td> 285 285 </tr> 286 286 </table> -
branches/5.2/src/wp-admin/network/site-users.php
r45834 r45835 355 355 </tr> 356 356 <tr class="form-field"> 357 <td colspan="2" ><?php _e( 'A password reset link will be sent to the user via email.' ); ?></td>357 <td colspan="2" class="td-full"><?php _e( 'A password reset link will be sent to the user via email.' ); ?></td> 358 358 </tr> 359 359 </table> -
branches/5.2/src/wp-admin/network/user-new.php
r45834 r45835 131 131 </tr> 132 132 <tr class="form-field"> 133 <td colspan="2" ><?php _e( 'A password reset link will be sent to the user via email.' ); ?></td>133 <td colspan="2" class="td-full"><?php _e( 'A password reset link will be sent to the user via email.' ); ?></td> 134 134 </tr> 135 135 </table> -
branches/5.2/src/wp-admin/options-discussion.php
r45834 r45835 222 222 <tr> 223 223 <th scope="row"><?php _e( 'Avatar Display' ); ?></th> 224 <td> <fieldset><legend class="screen-reader-text"><span><?php _e( 'Avatar Display' ); ?></span></legend>224 <td> 225 225 <label for="show_avatars"> 226 226 <input type="checkbox" id="show_avatars" name="show_avatars" value="1" <?php checked( $show_avatars, 1 ); ?> /> 227 227 <?php _e( 'Show Avatars' ); ?> 228 228 </label> 229 </ fieldset></td>229 </td> 230 230 </tr> 231 231 <tr class="avatar-settings<?php echo $show_avatars_class; ?>"> … … 256 256 <td class="defaultavatarpicker"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Default Avatar' ); ?></span></legend> 257 257 258 <p> 258 259 <?php _e( 'For users without a custom avatar of their own, you can either display a generic logo or a generated one based on their email address.' ); ?><br /> 260 </p> 259 261 260 262 <?php -
branches/5.2/src/wp-admin/options-permalink.php
r45834 r45835 198 198 <table class="form-table permalink-structure"> 199 199 <tr> 200 <th ><label><input name="selection" type="radio" value="" <?php checked( '', $permalink_structure ); ?> /> <?php _e( 'Plain' ); ?></label></th>200 <th scope="row"><label><input name="selection" type="radio" value="" <?php checked( '', $permalink_structure ); ?> /> <?php _e( 'Plain' ); ?></label></th> 201 201 <td><code><?php echo get_option( 'home' ); ?>/?p=123</code></td> 202 202 </tr> 203 203 <tr> 204 <th ><label><input name="selection" type="radio" value="<?php echo esc_attr( $structures[1] ); ?>" <?php checked( $structures[1], $permalink_structure ); ?> /> <?php _e( 'Day and name' ); ?></label></th>204 <th scope="row"><label><input name="selection" type="radio" value="<?php echo esc_attr( $structures[1] ); ?>" <?php checked( $structures[1], $permalink_structure ); ?> /> <?php _e( 'Day and name' ); ?></label></th> 205 205 <td><code><?php echo get_option( 'home' ) . $blog_prefix . $prefix . '/' . date( 'Y' ) . '/' . date( 'm' ) . '/' . date( 'd' ) . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></td> 206 206 </tr> 207 207 <tr> 208 <th ><label><input name="selection" type="radio" value="<?php echo esc_attr( $structures[2] ); ?>" <?php checked( $structures[2], $permalink_structure ); ?> /> <?php _e( 'Month and name' ); ?></label></th>208 <th scope="row"><label><input name="selection" type="radio" value="<?php echo esc_attr( $structures[2] ); ?>" <?php checked( $structures[2], $permalink_structure ); ?> /> <?php _e( 'Month and name' ); ?></label></th> 209 209 <td><code><?php echo get_option( 'home' ) . $blog_prefix . $prefix . '/' . date( 'Y' ) . '/' . date( 'm' ) . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></td> 210 210 </tr> 211 211 <tr> 212 <th ><label><input name="selection" type="radio" value="<?php echo esc_attr( $structures[3] ); ?>" <?php checked( $structures[3], $permalink_structure ); ?> /> <?php _e( 'Numeric' ); ?></label></th>212 <th scope="row"><label><input name="selection" type="radio" value="<?php echo esc_attr( $structures[3] ); ?>" <?php checked( $structures[3], $permalink_structure ); ?> /> <?php _e( 'Numeric' ); ?></label></th> 213 213 <td><code><?php echo get_option( 'home' ) . $blog_prefix . $prefix . '/' . _x( 'archives', 'sample permalink base' ) . '/123'; ?></code></td> 214 214 </tr> 215 215 <tr> 216 <th ><label><input name="selection" type="radio" value="<?php echo esc_attr( $structures[4] ); ?>" <?php checked( $structures[4], $permalink_structure ); ?> /> <?php _e( 'Post name' ); ?></label></th>216 <th scope="row"><label><input name="selection" type="radio" value="<?php echo esc_attr( $structures[4] ); ?>" <?php checked( $structures[4], $permalink_structure ); ?> /> <?php _e( 'Post name' ); ?></label></th> 217 217 <td><code><?php echo get_option( 'home' ) . $blog_prefix . $prefix . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></td> 218 218 </tr> 219 219 <tr> 220 <th >220 <th scope="row"> 221 221 <label><input name="selection" id="custom_selection" type="radio" value="custom" <?php checked( ! in_array( $permalink_structure, $structures ) ); ?> /> 222 222 <?php _e( 'Custom Structure' ); ?> -
branches/5.2/src/wp-admin/privacy.php
r44971 r45835 192 192 193 193 <hr> 194 <table class="form-table tools-privacy-policy-page" >194 <table class="form-table tools-privacy-policy-page" role="presentation"> 195 195 <tr> 196 <th scope="row"> 196 <th scope="row"><label for="page_for_privacy_policy"> 197 197 <?php 198 198 if ( $privacy_policy_page_exists ) { … … 202 202 } 203 203 ?> 204 </ th>204 </label></th> 205 205 <td> 206 206 <?php … … 219 219 ?> 220 220 <form method="post" action=""> 221 <label for="page_for_privacy_policy">222 <?php _e( 'Select an existing page:' ); ?>223 </label>224 221 <input type="hidden" name="action" value="set-privacy-page" /> 225 222 <?php -
branches/5.2/src/wp-admin/setup-config.php
r45834 r45835 211 211 <tr> 212 212 <th scope="row"><label for="dbname"><?php _e( 'Database Name' ); ?></label></th> 213 <td><input name="dbname" id="dbname" type="text" size="25" value="wordpress"<?php echo $autofocus; ?>/></td>214 <td ><?php _e( 'The name of the database you want to use with WordPress.' ); ?></td>213 <td><input name="dbname" id="dbname" type="text" aria-describedby="dbname-desc" size="25" value="wordpress"<?php echo $autofocus; ?>/></td> 214 <td id="dbname-desc"><?php _e( 'The name of the database you want to use with WordPress.' ); ?></td> 215 215 </tr> 216 216 <tr> 217 217 <th scope="row"><label for="uname"><?php _e( 'Username' ); ?></label></th> 218 <td><input name="uname" id="uname" type="text" size="25" value="<?php echo htmlspecialchars( _x( 'username', 'example username' ), ENT_QUOTES ); ?>" /></td>219 <td ><?php _e( 'Your database username.' ); ?></td>218 <td><input name="uname" id="uname" type="text" aria-describedby="uname-desc" size="25" value="<?php echo htmlspecialchars( _x( 'username', 'example username' ), ENT_QUOTES ); ?>" /></td> 219 <td id="uname-desc"><?php _e( 'Your database username.' ); ?></td> 220 220 </tr> 221 221 <tr> 222 222 <th scope="row"><label for="pwd"><?php _e( 'Password' ); ?></label></th> 223 <td><input name="pwd" id="pwd" type="text" size="25" value="<?php echo htmlspecialchars( _x( 'password', 'example password' ), ENT_QUOTES ); ?>" autocomplete="off" /></td>224 <td ><?php _e( 'Your database password.' ); ?></td>223 <td><input name="pwd" id="pwd" type="text" aria-describedby="pwd-desc" size="25" value="<?php echo htmlspecialchars( _x( 'password', 'example password' ), ENT_QUOTES ); ?>" autocomplete="off" /></td> 224 <td id="pwd-desc"><?php _e( 'Your database password.' ); ?></td> 225 225 </tr> 226 226 <tr> 227 227 <th scope="row"><label for="dbhost"><?php _e( 'Database Host' ); ?></label></th> 228 <td><input name="dbhost" id="dbhost" type="text" size="25" value="localhost" /></td>229 <td >228 <td><input name="dbhost" id="dbhost" type="text" aria-describedby="dbhost-desc" size="25" value="localhost" /></td> 229 <td id="dbhost-desc"> 230 230 <?php 231 231 /* translators: %s: localhost */ … … 236 236 <tr> 237 237 <th scope="row"><label for="prefix"><?php _e( 'Table Prefix' ); ?></label></th> 238 <td><input name="prefix" id="prefix" type="text" value="wp_" size="25" /></td>239 <td ><?php _e( 'If you want to run multiple WordPress installations in a single database, change this.' ); ?></td>238 <td><input name="prefix" id="prefix" type="text" aria-describedby="prefix-desc" value="wp_" size="25" /></td> 239 <td id="prefix-desc"><?php _e( 'If you want to run multiple WordPress installations in a single database, change this.' ); ?></td> 240 240 </tr> 241 241 </table> -
branches/5.2/src/wp-admin/user-edit.php
r45834 r45835 569 569 /* translators: %s: Gravatar URL */ 570 570 $description = sprintf( 571 __( ' You can change your profile picture on <a href="%s">Gravatar</a>.' ),571 __( '<a href="%s">You can change your profile picture on Gravatar</a>.' ), 572 572 __( 'https://en.gravatar.com/' ) 573 573 );
Note: See TracChangeset
for help on using the changeset viewer.