Skip to content

Commit 61f5f36

Browse files
committed
Only load common styles if the corresponding function exists
1 parent a1edfdb commit 61f5f36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

includes/amp-post-template-functions.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ function amp_post_template_add_fonts( $amp_template ) {
6262
*/
6363
function amp_post_template_add_block_styles() {
6464
add_theme_support( 'wp-block-styles' );
65-
wp_common_block_scripts_and_styles();
65+
if ( function_exists( 'wp_common_block_scripts_and_styles' ) ) {
66+
wp_common_block_scripts_and_styles();
67+
}
6668
wp_styles()->do_items();
6769
}
6870

0 commit comments

Comments
 (0)