Ticket #20880: 20880.diff

File 20880.diff, 515 bytes (added by kovshenin, 12 months ago)

Adding a hidden submit button before anything else in the form, thanks for the tip @azaozz

Line 
1Index: wp-admin/custom-header.php
2===================================================================
3--- wp-admin/custom-header.php  (revision 21022)
4+++ wp-admin/custom-header.php  (working copy)
5@@ -602,6 +602,7 @@
6 </table>
7 
8 <form method="post" action="<?php echo esc_attr( add_query_arg( 'step', 1 ) ) ?>">
9+<?php submit_button( null, 'primary', 'save-header-options', false, array( "style" => "visibility: hidden;" ) ); ?>
10 <table class="form-table">
11 <tbody>
12        <?php if ( get_uploaded_header_images() ) : ?>