diff --git a/wp-test-56970.php b/wp-test-56970.php index e68f274..cb04b2a 100644 --- a/wp-test-56970.php +++ b/wp-test-56970.php @@ -48,3 +48,10 @@ function wp_test_56970_transient_global_styles_stylesheet( $value, $transient ) return false; } + +// Hook to delete the global styles stylesheet transient after core update. +add_action( '_core_updated_successfully', 'wp_test_56970_delete_global_styles_stylesheet_transient' ); +function wp_test_56970_delete_global_styles_stylesheet_transient() { + $transient_name = 'global_styles_' . get_stylesheet(); + delete_site_transient( "transient_{$transient_name}" ); +}