From 0911aa3e1a3126b79d97e76c13689e09684a81e5 Mon Sep 17 00:00:00 2001 From: scribu Date: Sun, 17 Oct 2010 18:24:34 +0000 Subject: [PATCH] Use submit_button() in more places. See #15064 git-svn-id: https://develop.svn.wordpress.org/trunk@15830 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-activate.php | 4 +--- wp-admin/custom-background.php | 2 +- wp-admin/custom-header.php | 7 ++++--- wp-admin/edit-tag-form.php | 3 ++- wp-admin/export.php | 2 +- wp-admin/includes/dashboard.php | 4 ++-- wp-admin/includes/template.php | 4 +--- wp-admin/media.php | 5 ++--- wp-admin/network/edit.php | 5 +++-- wp-admin/network/settings.php | 2 +- wp-admin/options.php | 6 +++++- wp-admin/user-edit.php | 10 +++++----- wp-admin/user-new.php | 5 ++--- wp-admin/users.php | 4 ++-- 14 files changed, 32 insertions(+), 31 deletions(-) diff --git a/wp-activate.php b/wp-activate.php index 01d224dab8..7fee70a843 100644 --- a/wp-activate.php +++ b/wp-activate.php @@ -48,9 +48,7 @@ get_header();

-

- -

+ -

+ diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index 659512df1e..5cab9b0742 100644 --- a/wp-admin/custom-header.php +++ b/wp-admin/custom-header.php @@ -562,7 +562,8 @@ class Custom_Image_Header { do_action( 'custom_header_options' ); wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> -

+ + @@ -636,7 +637,6 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> -

@@ -644,7 +644,8 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> - + +

diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php index 7dc2eae4ef..6faff0c703 100644 --- a/wp-admin/edit-tag-form.php +++ b/wp-admin/edit-tag-form.php @@ -86,7 +86,8 @@ else do_action('edit_tag_form', $tag); do_action($taxonomy . '_edit_form', $tag, $taxonomy); + +submit_button( __('Update') ); ?> -

diff --git a/wp-admin/export.php b/wp-admin/export.php index 01f3bf98b9..d64876b753 100644 --- a/wp-admin/export.php +++ b/wp-admin/export.php @@ -136,7 +136,7 @@ foreach ( (array) $authors as $author ) { -

+

diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index ccd143fc19..460e5d15a4 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -152,8 +152,8 @@ function wp_add_dashboard_widget( $widget_id, $widget_name, $callback, $control_ function _wp_dashboard_control_callback( $dashboard, $meta_box ) { echo '
'; wp_dashboard_trigger_widget_control( $meta_box['id'] ); - echo '

'; - + echo ''; + submit_button( __('Submit') ); echo '
'; } diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 8019118ecf..12781fbd5a 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -843,9 +843,7 @@ function wp_import_upload_form( $action ) {

-

- -

+ -

- + -

+ diff --git a/wp-admin/network/edit.php b/wp-admin/network/edit.php index e041aff1a7..fc7da7204f 100644 --- a/wp-admin/network/edit.php +++ b/wp-admin/network/edit.php @@ -74,8 +74,9 @@ function confirm_delete_users( $users ) { } } } + + submit_button( __('Confirm Deletion'), 'delete' ); ?> -

" />

-

+ diff --git a/wp-admin/network/settings.php b/wp-admin/network/settings.php index 0a2f4f285b..c39830c2cc 100644 --- a/wp-admin/network/settings.php +++ b/wp-admin/network/settings.php @@ -273,7 +273,7 @@ if (isset($_GET['updated'])) { -

+ diff --git a/wp-admin/options.php b/wp-admin/options.php index 15f489d3e2..7acd64eebf 100644 --- a/wp-admin/options.php +++ b/wp-admin/options.php @@ -209,7 +209,11 @@ foreach ( (array) $options as $option ) : endforeach; ?> -

+ + + + + diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index 896d01a312..be78208432 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -384,11 +384,11 @@ if ( $show_password_fields ) : -

- - - -

+ + + + + -

- -

+ + diff --git a/wp-admin/users.php b/wp-admin/users.php index c76eabd15b..15816bac8e 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -190,7 +190,7 @@ case 'delete': '.__('Attribute all posts and links to:')." $user_dropdown"; ?> -

+

@@ -278,7 +278,7 @@ case 'remove': ?> -

+