Administration: remove a leftover check from get_submit_button.
Props sstoqnov. Fixes #34891. git-svn-id: https://develop.svn.wordpress.org/trunk@39059 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
89ce913169
commit
f34e252334
|
@ -1945,9 +1945,6 @@ function get_submit_button( $text = '', $type = 'primary large', $name = 'submit
|
||||||
// Remove empty items, remove duplicate items, and finally build a string.
|
// Remove empty items, remove duplicate items, and finally build a string.
|
||||||
$class = implode( ' ', array_unique( array_filter( $classes ) ) );
|
$class = implode( ' ', array_unique( array_filter( $classes ) ) );
|
||||||
|
|
||||||
if ( 'delete' === $type )
|
|
||||||
$class = 'button delete';
|
|
||||||
|
|
||||||
$text = $text ? $text : __( 'Save Changes' );
|
$text = $text ? $text : __( 'Save Changes' );
|
||||||
|
|
||||||
// Default the id attribute to $name unless an id was specifically provided in $other_attributes
|
// Default the id attribute to $name unless an id was specifically provided in $other_attributes
|
||||||
|
|
Loading…
Reference in New Issue