WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/02/2017 09:51:09 PM (2 years ago)
Author:
afercia
Message:

Quick/Bulk Edit: Improve the inline error messages styling.

  • uses the core notice styles for the Quick Edit form inline error messages
  • adds missing periods at the end of a few error messages

Props ocean90, karmatosed, melchoyce, afercia.
Fixes #35496.

File:
1 edited

Legend:

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

    r41399 r41684  
    424424    </div>
    425425
    426     <p id="replysubmit" class="submit">
    427     <a href="#comments-form" class="save button button-primary alignright">
    428     <span id="addbtn" style="display:none;"><?php _e('Add Comment'); ?></span>
    429     <span id="savebtn" style="display:none;"><?php _e('Update Comment'); ?></span>
    430     <span id="replybtn" style="display:none;"><?php _e('Submit Reply'); ?></span></a>
    431     <a href="#comments-form" class="cancel button alignleft"><?php _e('Cancel'); ?></a>
    432     <span class="waiting spinner"></span>
    433     <span class="error" style="display:none;"></span>
    434     </p>
     426    <div id="replysubmit" class="submit">
     427        <p>
     428            <a href="#comments-form" class="save button button-primary alignright">
     429                <span id="addbtn" style="display: none;"><?php _e( 'Add Comment' ); ?></span>
     430                <span id="savebtn" style="display: none;"><?php _e( 'Update Comment' ); ?></span>
     431                <span id="replybtn" style="display: none;"><?php _e( 'Submit Reply' ); ?></span>
     432            </a>
     433            <a href="#comments-form" class="cancel button alignleft"><?php _e( 'Cancel' ); ?></a>
     434            <span class="waiting spinner"></span>
     435        </p>
     436        <br class="clear" />
     437        <div class="notice notice-error notice-alt inline hidden">
     438            <p class="error"></p>
     439        </div>
     440    </div>
    435441
    436442    <input type="hidden" name="action" id="action" value="" />
     
    893899 *                                              (such as a post type, 'link', or 'comment'). Accepts a single
    894900 *                                              screen ID, WP_Screen object, or array of screen IDs. Default
    895  *                                              is the current screen.  If you have used add_menu_page() or 
     901 *                                              is the current screen.  If you have used add_menu_page() or
    896902 *                                              add_submenu_page() to create a new screen (and hence screen_id),
    897903 *                                              make sure your menu slug conforms to the limits of sanitize_key()
Note: See TracChangeset for help on using the changeset viewer.