WordPress.org

Make WordPress Core

Ticket #20880: 20880.diff

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

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

  • wp-admin/custom-header.php

     
    602602</table> 
    603603 
    604604<form method="post" action="<?php echo esc_attr( add_query_arg( 'step', 1 ) ) ?>"> 
     605<?php submit_button( null, 'primary', 'save-header-options', false, array( "style" => "visibility: hidden;" ) ); ?> 
    605606<table class="form-table"> 
    606607<tbody> 
    607608        <?php if ( get_uploaded_header_images() ) : ?>