| @@ -37,21 +37,8 @@ | ||
| 37 | 37 | $classes .= ' has-login-form'; |
| 38 | 38 | |
| 39 | 39 | // Get the form. |
| 40 | 40 | $contents = wp_login_form( array( 'echo' => false ) ); |
| 41 | - | |
| 42 | - if ( wp_is_block_theme() ) { | |
| 43 | - $processor = new WP_HTML_Tag_Processor( $contents ); | |
| 44 | - | |
| 45 | - while ( $processor->next_tag( 'input' ) ) { | |
| 46 | - if ( 'submit' === $processor->get_attribute( 'type' ) && 'wp-submit' === $processor->get_attribute( 'name' ) ) { | |
| 47 | - $processor->add_class( 'wp-block-button__link' ); | |
| 48 | - $processor->add_class( wp_theme_get_element_class_name( 'button' ) ); | |
| 49 | - $contents = $processor->get_updated_html(); | |
| 50 | - break; | |
| 51 | - } | |
| 52 | - } | |
| 53 | - } | |
| 54 | 41 | } |
| 55 | 42 | |
| 56 | 43 | $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classes ) ); |
| 57 | 44 | |