Make WordPress Core

Ticket #38790: 38790.2.diff

File 38790.2.diff, 2.7 KB (added by afercia, 9 years ago)
  • src/wp-admin/css/edit.css

     
    628628        width: 250px;
    629629}
    630630
     631.post-attributes-label {
     632        display: block;
     633        margin: 1em 0 0.5em;
     634        font-weight: 600;
     635}
     636
    631637#post-visibility-select {
    632638        line-height: 1.5em;
    633639        margin-top: 3px;
  • src/wp-admin/includes/meta-boxes.php

     
    813813                $pages = wp_dropdown_pages( $dropdown_args );
    814814                if ( ! empty($pages) ) :
    815815?>
    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>
    818817<?php echo $pages; ?>
    819818<?php
    820819                endif; // end empty pages check
     
    823822        if ( count( get_page_templates( $post ) ) > 0 && get_option( 'page_for_posts' ) != $post->ID ) :
    824823                $template = ! empty( $post->page_template ) ? $post->page_template : false;
    825824                ?>
    826 <p><strong><?php _e('Template') ?></strong><?php
     825<label class="post-attributes-label" for="page_template"><?php _e( 'Template' ) ?></label><?php
    827826        /**
    828          * Fires immediately after the heading inside the 'Template' section
     827         * Fires immediately after the label inside the 'Template' section
    829828         * of the 'Page Attributes' meta box.
    830829         *
    831830         * @since 4.4.0
     
    834833         * @param WP_Post $post     The current post.
    835834         */
    836835        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?>
    844837<select name="page_template" id="page_template">
    845838<?php
    846839/**
     
    859852</select>
    860853<?php endif; ?>
    861854<?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) ?>" />
    864857<?php if ( 'page' == $post->post_type && get_current_screen()->get_help_tabs() ) : ?>
    865858<p><?php _e( 'Need help? Use the Help tab above the screen title.' ); ?></p>
    866859<?php endif;