Skip to content

Commit

Permalink
Administration: Add primary class to the FTP credentials modal subm…
Browse files Browse the repository at this point in the history
…it button.

This helps differentiate the two buttons available in the FTP credentials modal by setting a `primary` class to the submit button.

Props mapk, curdin, audrasjb, shailu25.
Fixes #37647.




git-svn-id: https://develop.svn.wordpress.org/trunk@58149 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
audrasjb committed May 14, 2024
1 parent 7a031a9 commit 6f7cd05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-admin/includes/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -2664,7 +2664,7 @@ function request_filesystem_credentials( $form_post, $type = '', $error = false,
<p class="request-filesystem-credentials-action-buttons">
<?php wp_nonce_field( 'filesystem-credentials', '_fs_nonce', false, true ); ?>
<button class="button cancel-button" data-js-action="close" type="button"><?php _e( 'Cancel' ); ?></button>
<?php submit_button( __( 'Proceed' ), '', 'upgrade', false ); ?>
<?php submit_button( __( 'Proceed' ), 'primary', 'upgrade', false ); ?>
</p>
</div>
</form>
Expand Down

0 comments on commit 6f7cd05

Please sign in to comment.