WordPress.org

Make WordPress Core

Changeset 47228


Ignore:
Timestamp:
02/10/2020 02:27:23 AM (22 months ago)
Author:
SergeyBiryukov
Message:

Editor: Add unique classes to .post-attributes-label-wrapper paragraphs for easier JS or CSS targeting.

Props sathyapulse, sabernhardt, garrett-eclipse, noisysocks.
Fixes #44408.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/meta-boxes.php

    r47219 r47228  
    950950        if ( ! empty( $pages ) ) :
    951951            ?>
    952 <p class="post-attributes-label-wrapper"><label class="post-attributes-label" for="parent_id"><?php _e( 'Parent' ); ?></label></p>
     952<p class="post-attributes-label-wrapper parent-id-label-wrapper"><label class="post-attributes-label" for="parent_id"><?php _e( 'Parent' ); ?></label></p>
    953953            <?php echo $pages; ?>
    954954            <?php
     
    959959        $template = ! empty( $post->page_template ) ? $post->page_template : false;
    960960        ?>
    961 <p class="post-attributes-label-wrapper"><label class="post-attributes-label" for="page_template"><?php _e( 'Template' ); ?></label>
     961<p class="post-attributes-label-wrapper page-template-label-wrapper"><label class="post-attributes-label" for="page_template"><?php _e( 'Template' ); ?></label>
    962962        <?php
    963963        /**
     
    991991<?php endif; ?>
    992992    <?php if ( post_type_supports( $post->post_type, 'page-attributes' ) ) : ?>
    993 <p class="post-attributes-label-wrapper"><label class="post-attributes-label" for="menu_order"><?php _e( 'Order' ); ?></label></p>
     993<p class="post-attributes-label-wrapper menu-order-label-wrapper"><label class="post-attributes-label" for="menu_order"><?php _e( 'Order' ); ?></label></p>
    994994<input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo esc_attr( $post->menu_order ); ?>" />
    995995        <?php
     
    10041004        ?>
    10051005        <?php if ( 'page' == $post->post_type && get_current_screen()->get_help_tabs() ) : ?>
    1006 <p><?php _e( 'Need help? Use the Help tab above the screen title.' ); ?></p>
     1006<p class="post-attributes-help-text"><?php _e( 'Need help? Use the Help tab above the screen title.' ); ?></p>
    10071007            <?php
    10081008    endif;
Note: See TracChangeset for help on using the changeset viewer.