Skip to content

Commit 5f04362

Browse files
Merge pull request #666 from newfold-labs/fix/child-theme
AI Child Theme to DB Injection
2 parents 341d537 + db3f2cf commit 5f04362

File tree

5 files changed

+5
-349
lines changed

5 files changed

+5
-349
lines changed

includes/RestApi/FlowController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
use NewfoldLabs\WP\Module\Onboarding\Data\Services\FlowService;
77
use NewfoldLabs\WP\Module\Onboarding\Services\PluginService;
88
use NewfoldLabs\WP\Module\Onboarding\Data\Services\SiteGenService;
9-
use NewfoldLabs\WP\Module\Onboarding\Services\GlobalStylesService;
9+
use NewfoldLabs\WP\Module\Onboarding\Data\Services\GlobalStylesService;
1010
use NewfoldLabs\WP\Module\Onboarding\Services\StatusService;
11-
use NewfoldLabs\WP\Module\Onboarding\Services\TemplatePartsService;
11+
use NewfoldLabs\WP\Module\Onboarding\Data\Services\TemplatePartsService;
1212

1313
/**
1414
* Class FlowController

includes/RestApi/Themes/ThemeVariationsController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use NewfoldLabs\WP\Module\Onboarding\Permissions;
55
use NewfoldLabs\WP\Module\Onboarding\Data\Themes;
6-
use NewfoldLabs\WP\Module\Onboarding\Services\GlobalStylesService;
6+
use NewfoldLabs\WP\Module\Onboarding\Data\Services\GlobalStylesService;
77

88
/**
99
* Class ThemeVariationsController
@@ -135,8 +135,8 @@ public function get_update_diy_global_style_variation_args() {
135135
* @return string
136136
*/
137137
private static function translate( $theme_json, $domain = 'default' ) {
138-
$path = wp_normalize_path( realpath( ABSPATH . WPINC ) ) . '/theme-i18n.json';
139-
$i18n_schema = wp_json_file_decode( $path );
138+
$i18n_schema = wp_json_file_decode( __DIR__ . '/theme-i18n.json' );
139+
140140
return translate_settings_using_i18n_schema( $i18n_schema, $theme_json, $domain );
141141
}
142142

includes/Services/FontService.php

Lines changed: 0 additions & 78 deletions
This file was deleted.

includes/Services/GlobalStylesService.php

Lines changed: 0 additions & 164 deletions
This file was deleted.

includes/Services/TemplatePartsService.php

Lines changed: 0 additions & 102 deletions
This file was deleted.

0 commit comments

Comments
 (0)