@@ -2562,7 +2562,7 @@ function compression_test() {
25622562 *
25632563 * @param string $text Optional. The text of the button. Defaults to 'Save Changes'.
25642564 * @param string $type Optional. The type and CSS class(es) of the button. Core values
2565- * include 'primary', 'small', and 'large'. Default 'primary'.
2565+ * include 'primary', 'small', 'compact' and 'large'. Default 'primary'.
25662566 * @param string $name Optional. The HTML name of the submit button. If no `id` attribute
25672567 * is given in the `$other_attributes` parameter, `$name` will be used
25682568 * as the button's `id`. Default 'submit'.
@@ -2586,7 +2586,7 @@ function submit_button( $text = '', $type = 'primary', $name = 'submit', $wrap =
25862586 *
25872587 * @param string $text Optional. The text of the button. Defaults to 'Save Changes'.
25882588 * @param string $type Optional. The type and CSS class(es) of the button. Core values
2589- * include 'primary', 'small', and 'large'. Default 'primary large'.
2589+ * include 'primary', 'small', 'compact' and 'large'. Default 'primary large'.
25902590 * @param string $name Optional. The HTML name of the submit button. If no `id` attribute
25912591 * is given in the `$other_attributes` parameter, `$name` will be used
25922592 * as the button's `id`. Default 'submit'.
@@ -2605,7 +2605,7 @@ function get_submit_button( $text = '', $type = 'primary large', $name = 'submit
26052605 $ type = explode ( ' ' , $ type );
26062606 }
26072607
2608- $ button_shorthand = array ( 'primary ' , 'small ' , 'large ' );
2608+ $ button_shorthand = array ( 'primary ' , 'small ' , 'large ' , ' compact ' );
26092609 $ classes = array ( 'button ' );
26102610
26112611 foreach ( $ type as $ t ) {
0 commit comments