mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-25 21:54:28 +00:00
Accessibility: Standardize the remove/delete/cancel links in the Menus screen and Publish meta boxes.
The `submitdelete` CSS class is used in various places across the admin for some "red" action links. It is worth simplifying this rule for further improvements related to color contrast. - simplifies a non-standard styling for the "Remove/Cancel" links in the Menus screen - underlines all the "Move to trash/Delete" red links in all the Publish meta boxes - fixes CSS classes usage for all the Publish meta boxes primary buttons - fixes broken layout for the old Link Manager publish meta box Props karmatosed, hugobaeta, monikarao, afercia. Fixes #37969, #37018. See #37448, #37138, #27314. git-svn-id: https://develop.svn.wordpress.org/trunk@38616 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -252,14 +252,14 @@ if ( !in_array( $post->post_status, array('publish', 'future', 'private') ) || 0
|
||||
if ( $can_publish ) :
|
||||
if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?>
|
||||
<input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Schedule') ?>" />
|
||||
<?php submit_button( __( 'Schedule' ), 'primary button-large', 'publish', false ); ?>
|
||||
<?php submit_button( __( 'Schedule' ), 'primary large', 'publish', false ); ?>
|
||||
<?php else : ?>
|
||||
<input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Publish') ?>" />
|
||||
<?php submit_button( __( 'Publish' ), 'primary button-large', 'publish', false ); ?>
|
||||
<?php submit_button( __( 'Publish' ), 'primary large', 'publish', false ); ?>
|
||||
<?php endif;
|
||||
else : ?>
|
||||
<input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Submit for Review') ?>" />
|
||||
<?php submit_button( __( 'Submit for Review' ), 'primary button-large', 'publish', false ); ?>
|
||||
<?php submit_button( __( 'Submit for Review' ), 'primary large', 'publish', false ); ?>
|
||||
<?php
|
||||
endif;
|
||||
} else { ?>
|
||||
@@ -334,7 +334,7 @@ function attachment_submit_meta_box( $post ) {
|
||||
<div id="publishing-action">
|
||||
<span class="spinner"></span>
|
||||
<input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Update') ?>" />
|
||||
<input name="save" type="submit" class="button-primary button-large" id="publish" value="<?php esc_attr_e( 'Update' ) ?>" />
|
||||
<input name="save" type="submit" class="button button-primary button-large" id="publish" value="<?php esc_attr_e( 'Update' ) ?>" />
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div><!-- #major-publishing-actions -->
|
||||
@@ -909,9 +909,9 @@ if ( !empty($_GET['action']) && 'edit' == $_GET['action'] && current_user_can('m
|
||||
|
||||
<div id="publishing-action">
|
||||
<?php if ( !empty($link->link_id) ) { ?>
|
||||
<input name="save" type="submit" class="button-large button-primary" id="publish" value="<?php esc_attr_e( 'Update Link' ) ?>" />
|
||||
<input name="save" type="submit" class="button button-primary button-large" id="publish" value="<?php esc_attr_e( 'Update Link' ) ?>" />
|
||||
<?php } else { ?>
|
||||
<input name="save" type="submit" class="button-large button-primary" id="publish" value="<?php esc_attr_e( 'Add Link' ) ?>" />
|
||||
<input name="save" type="submit" class="button button-primary button-large" id="publish" value="<?php esc_attr_e( 'Add Link' ) ?>" />
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
Reference in New Issue
Block a user