PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.1.2
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.1.2
3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 All 111 releases
← All changes | includes/Core/Importer/Runners/Customizer.php +3 -4 3.7.33.1.2 View file →
@@ -29,16 +29,15 @@
29 29 return __( 'Updating customizer settings.', 'templately' );
30 30 }
31 31
32 32 public function should_run( $data, $imported_data = [] ): bool {
33 - return ! empty( $data['title'] ) || !empty( $data['slogan'] );
33 + $params = $this->origin->get_request_params();
34 + return ! empty( $params['title'] ) || !empty( $params['slogan'] );
34 35 }
35 36
36 37 public function import( $data, $imported_data ): array {
37 - $params = $data;
38 + $params = $this->origin->get_request_params();
38 39 $customizer = [];
39 -
40 - $this->log( 0 );
41 40
42 41 if( ! empty( $params['title'] ) ) {
43 42 $customizer[] = 'title';
44 43 // set_theme_mod( 'blogname', $params['title'] );