From f34e2523342251e18abee3279a3890538a2b183f Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Mon, 31 Oct 2016 16:38:21 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/template.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index 54bc4cfce2..27eadc6151 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -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. $class = implode( ' ', array_unique( array_filter( $classes ) ) ); - if ( 'delete' === $type ) - $class = 'button delete'; - $text = $text ? $text : __( 'Save Changes' ); // Default the id attribute to $name unless an id was specifically provided in $other_attributes