From ea0ed75b256659c339bd6ce8d623b672fce8a324 Mon Sep 17 00:00:00 2001 From: Matias Benedetto Date: Mon, 27 Mar 2023 14:07:34 -0300 Subject: [PATCH] adding default value to argument to avoid error when calling the function with only one paramenter instead of 2 --- admin/resolver_additions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/resolver_additions.php b/admin/resolver_additions.php index 4cac1d2b..38eb3aa8 100644 --- a/admin/resolver_additions.php +++ b/admin/resolver_additions.php @@ -20,7 +20,7 @@ class MY_Theme_JSON_Resolver extends WP_Theme_JSON_Resolver { * 'all' will include settings from the current theme as well as the parent theme (if it has one) * 'variation' will include just the user custom styles and settings. */ - public static function export_theme_data( $content, $extra_theme_data ) { + public static function export_theme_data( $content, $extra_theme_data = null ) { if ( class_exists( 'WP_Theme_JSON_Gutenberg' ) ) { $theme = new WP_Theme_JSON_Gutenberg(); } else {