Ticket #38790: 38790.3.diff
| File 38790.3.diff, 2.8 KB (added by , 9 years ago) |
|---|
-
src/wp-admin/css/edit.css
628 628 width: 250px; 629 629 } 630 630 631 .post-attributes-label-wrapper { 632 margin-bottom: 0.5em; 633 } 634 635 .post-attributes-label { 636 vertical-align: baseline; 637 font-weight: 600; 638 } 639 631 640 #post-visibility-select { 632 641 line-height: 1.5em; 633 642 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 <p class="post-attributes-label-wrapper"><label class="post-attributes-label" for="parent_id"><?php _e( 'Parent' ); ?></label></p> 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 <p class="post-attributes-label-wrapper"><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 … … 835 834 */ 836 835 do_action( 'page_attributes_meta_box_template', $template, $post ); 837 836 ?></p> 838 <label class="screen-reader-text" for="page_template">839 <?php840 $post_type_object = get_post_type_object( $post->post_type );841 echo esc_html( $post_type_object->labels->attributes );842 ?>843 </label>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 <p class="post-attributes-label-wrapper"><label class="post-attributes-label" for="menu_order"><?php _e( 'Order' ); ?></label></p> 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;