Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/wp-admin/includes/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -2561,7 +2561,7 @@ function compression_test() {
*
* @param string $text Optional. The text of the button. Defaults to 'Save Changes'.
* @param string $type Optional. The type and CSS class(es) of the button. Core values
* include 'primary', 'small', and 'large'. Default 'primary'.
* include 'primary', 'small', 'compact' and 'large'. Default 'primary'.
* @param string $name Optional. The HTML name of the submit button. If no `id` attribute
* is given in the `$other_attributes` parameter, `$name` will be used
* as the button's `id`. Default 'submit'.
Expand All @@ -2585,7 +2585,7 @@ function submit_button( $text = '', $type = 'primary', $name = 'submit', $wrap =
*
* @param string $text Optional. The text of the button. Defaults to 'Save Changes'.
* @param string $type Optional. The type and CSS class(es) of the button. Core values
* include 'primary', 'small', and 'large'. Default 'primary large'.
* include 'primary', 'small', 'compact' and 'large'. Default 'primary large'.
* @param string $name Optional. The HTML name of the submit button. If no `id` attribute
* is given in the `$other_attributes` parameter, `$name` will be used
* as the button's `id`. Default 'submit'.
Expand All @@ -2604,7 +2604,7 @@ function get_submit_button( $text = '', $type = 'primary large', $name = 'submit
$type = explode( ' ', $type );
}

$button_shorthand = array( 'primary', 'small', 'large' );
$button_shorthand = array( 'primary', 'small', 'large', 'compact' );
$classes = array( 'button' );

foreach ( $type as $t ) {
Expand Down
Loading