| @@ -56,9 +56,8 @@ | ||
| 56 | 56 | */ |
| 57 | 57 | public function scripts(){ |
| 58 | 58 | $this->is_gutenberg_active = true; |
| 59 | 59 | templately()->assets->enqueue( 'templately-gutenberg', 'css/gutenberg.css' ); |
| 60 | - templately()->assets->enqueue( 'templately-tailwind', 'css/tailwind.css', ['templately-gutenberg'] ); | |
| 61 | 60 | templately()->assets->enqueue( 'templately-gutenberg', 'js/gutenberg.js' ); |
| 62 | 61 | templately()->admin->scripts( 'gutenberg' ); |
| 63 | 62 | } |
| 64 | 63 | |
| @@ -110,18 +109,13 @@ | ||
| 110 | 109 | * @since 2.0.0 |
| 111 | 110 | * |
| 112 | 111 | * @return array|WP_Error array on success, WP_Error on failure. |
| 113 | 112 | */ |
| 114 | - public function create_page( $id, $title, $importer = null, $settings = [] ){ | |
| 113 | + public function create_page( $id, $title, $importer = null ){ | |
| 115 | 114 | $post_data = $inserted_ID = $importer->get_content( $id, 'gutenberg' ); |
| 116 | 115 | |
| 117 | 116 | if( is_wp_error( $inserted_ID ) ) { |
| 118 | 117 | return $inserted_ID; |
| 119 | - } | |
| 120 | - | |
| 121 | - if ( ! empty( $settings ) && ! empty( $inserted_ID['content'] ) && is_string( $inserted_ID['content'] ) ) { | |
| 122 | - $inserted_ID['content'] = \Templately\Core\Importer\Utils\GutenbergSettingsMerger::merge( $inserted_ID['content'], $settings ); | |
| 123 | - $post_data['content'] = $inserted_ID['content']; | |
| 124 | 118 | } |
| 125 | 119 | |
| 126 | 120 | if ( ! empty( $inserted_ID['content'] ) ) { |
| 127 | 121 | $inserted_ID = wp_insert_post( array ( |