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:
Andrea Fercia 2016-10-31 16:38:21 +00:00
parent 89ce913169
commit f34e252334
1 changed files with 0 additions and 3 deletions

View File

@ -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