Skip to content

Commit

Permalink
Merge pull request #290 from WordPress/fix/export-theme-data-default-…
Browse files Browse the repository at this point in the history
…argument

Adding default value to an to avoid error when calling export_theme_data()
  • Loading branch information
matiasbenedetto authored Mar 27, 2023
2 parents a1f43d3 + ea0ed75 commit e3f9193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/resolver_additions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e3f9193

Please sign in to comment.