Ticket #38790: 38790.2.diff
| File 38790.2.diff, 2.7 KB (added by , 9 years ago) |
|---|
-
src/wp-admin/css/edit.css
628 628 width: 250px; 629 629 } 630 630 631 .post-attributes-label { 632 display: block; 633 margin: 1em 0 0.5em; 634 font-weight: 600; 635 } 636 631 637 #post-visibility-select { 632 638 line-height: 1.5em; 633 639 margin-top: 3px; -
src/wp-admin/includes/meta-boxes.php
813 813 $pages = wp_dropdown_pages( $dropdown_args ); 814 814 if ( ! empty($pages) ) : 815 815 ?> 816 <p><strong><?php _e('Parent') ?></strong></p> 817 <label class="screen-reader-text" for="parent_id"><?php _e('Parent') ?></label> 816 <label class="post-attributes-label" for="parent_id"><?php _e( 'Parent' ) ?></label> 818 817 <?php echo $pages; ?> 819 818 <?php 820 819 endif; // end empty pages check … … 823 822 if ( count( get_page_templates( $post ) ) > 0 && get_option( 'page_for_posts' ) != $post->ID ) : 824 823 $template = ! empty( $post->page_template ) ? $post->page_template : false; 825 824 ?> 826 < p><strong><?php _e('Template') ?></strong><?php825 <label class="post-attributes-label" for="page_template"><?php _e( 'Template' ) ?></label><?php 827 826 /** 828 * Fires immediately after the headinginside the 'Template' section827 * Fires immediately after the label inside the 'Template' section 829 828 * of the 'Page Attributes' meta box. 830 829 * 831 830 * @since 4.4.0 … … 834 833 * @param WP_Post $post The current post. 835 834 */ 836 835 do_action( 'page_attributes_meta_box_template', $template, $post ); 837 ?></p> 838 <label class="screen-reader-text" for="page_template"> 839 <?php 840 $post_type_object = get_post_type_object( $post->post_type ); 841 echo esc_html( $post_type_object->labels->attributes ); 842 ?> 843 </label> 836 ?> 844 837 <select name="page_template" id="page_template"> 845 838 <?php 846 839 /** … … 859 852 </select> 860 853 <?php endif; ?> 861 854 <?php if ( post_type_supports( $post->post_type, 'page-attributes' ) ) : ?> 862 < p><strong><?php _e('Order') ?></strong></p>863 < p><label class="screen-reader-text" for="menu_order"><?php _e('Order') ?></label><input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo esc_attr($post->menu_order) ?>" /></p>855 <label class="post-attributes-label" for="menu_order"><?php _e( 'Order' ) ?></label> 856 <input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo esc_attr($post->menu_order) ?>" /> 864 857 <?php if ( 'page' == $post->post_type && get_current_screen()->get_help_tabs() ) : ?> 865 858 <p><?php _e( 'Need help? Use the Help tab above the screen title.' ); ?></p> 866 859 <?php endif;