Make WordPress Core


Ignore:
Timestamp:
03/29/2022 07:06:54 PM (2 years ago)
Author:
joedolson
Message:

Quick/Bulk Edit: Position action buttons in close proximity.

Move the Submit and Cancel buttons in quick edit forms to be next to each other and change the order of the buttons. Improve accessibility for low vision and cognitive impairments for quick editing.

Props afercia, marybaum.
Fixes #55364.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r53011 r53023  
    20082008
    20092009            <div class="submit inline-edit-save">
    2010                 <button type="button" class="button cancel alignleft"><?php _e( 'Cancel' ); ?></button>
    2011 
    20122010                <?php if ( ! $bulk ) : ?>
    20132011                    <?php wp_nonce_field( 'inlineeditnonce', '_inline_edit', false ); ?>
    2014                     <button type="button" class="button button-primary save alignright"><?php _e( 'Update' ); ?></button>
     2012                    <button type="button" class="button button-primary save"><?php _e( 'Update' ); ?></button>
     2013                <?php else : ?>
     2014                    <?php submit_button( __( 'Update' ), 'primary', 'bulk_edit', false ); ?>
     2015                <?php endif; ?>
     2016
     2017                <button type="button" class="button cancel"><?php _e( 'Cancel' ); ?></button>
     2018
     2019                <?php if ( ! $bulk ) : ?>
    20152020                    <span class="spinner"></span>
    2016                 <?php else : ?>
    2017                     <?php submit_button( __( 'Update' ), 'primary alignright', 'bulk_edit', false ); ?>
    20182021                <?php endif; ?>
    20192022
     
    20232026                    <input type="hidden" name="post_author" value="<?php echo esc_attr( $post->post_author ); ?>" />
    20242027                <?php endif; ?>
    2025                 <br class="clear" />
    20262028
    20272029                <div class="notice notice-error notice-alt inline hidden">
Note: See TracChangeset for help on using the changeset viewer.