Removes logo resize reset testing code (#7760)

This commit is contained in:
Grant Kinney 2024-04-23 17:13:41 -05:00 committed by GitHub
parent 3d06d9be4b
commit c5481c18e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -136,13 +136,3 @@ function logo_awesomeness_customize_css() {
wp_add_inline_style( 'customize-controls', '#customize-control-logo_size input[type=range] { width: 100%; }' );
}
add_action( 'customize_controls_enqueue_scripts', 'logo_awesomeness_customize_css' );
/**
* Testing function to remove logo_size theme mod
*/
function logo_awesomeness_remove_theme_mod() {
if ( isset( $_GET['remove_logo_size'] ) && 'true' == $_GET['remove_logo_size'] ){
set_theme_mod( 'logo_size', '' );
}
}
add_action( 'wp_loaded', 'logo_awesomeness_remove_theme_mod' );