Ticket #21852: 21852.patch
| File 21852.patch, 872 bytes (added by SergeyBiryukov, 8 months ago) |
|---|
-
wp-admin/includes/template.php
1638 1638 */ 1639 1639 function get_submit_button( $text = null, $type = 'primary', $name = 'submit', $wrap = true, $other_attributes = null ) { 1640 1640 if ( ! is_array( $type ) ) 1641 $type = explode( ' ', $type ); 1641 $type = explode( ' ', $type ); 1642 1642 1643 1643 $button_shorthand = array( 'primary', 'tiny', 'small', 'large' ); 1644 $classes = array( 'button');1644 $classes = array(); 1645 1645 foreach ( $type as $t ) { 1646 1646 if ( 'secondary' === $t || 'button-secondary' === $t ) 1647 1647 continue; 1648 1648 $classes[] = in_array( $t, $button_shorthand ) ? 'button-' . $t : $t; 1649 1649 } 1650 $classes[] = 'button'; 1650 1651 $class = implode( ' ', array_unique( $classes ) ); 1651 1652 1652 1653 if ( 'delete' === $type )
