[wp-trac] [WordPress Trac] #64892: get_submit_button() should support "compact" button shorthand

WordPress Trac noreply at wordpress.org
Thu Mar 19 08:21:23 UTC 2026


#64892: get_submit_button() should support "compact" button shorthand
-------------------------+-----------------------------
 Reporter:  wildworks    |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:  admin-reskin
  Focuses:               |
-------------------------+-----------------------------
 [61645] introduced a new "compact" button size variation.

 https://github.com/WordPress/wordpress-
 develop/commit/7c9a0d6f3d37556711f2ed381ab00de6e7a4fc7f#diff-
 6ec764754195836e03cd6d3f98815ae0af68bc4dc01df0368a754f5ec877b348R74

 However, this variation is not recognized as a shorthand in the
 `get_submit_button()` function.

 I believe the `compact` shorthand should be supported, just like
 `primary`, `small`, and `large`.

 https://github.com/WordPress/wordpress-
 develop/blob/85cc3de8fafbe2b6ccd50dbbb628c6013bdc92f6/src/wp-
 admin/includes/template.php#L2607

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64892>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list