PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.4.4
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.4.4
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/Platform/Gutenberg.php +1 -7 3.6.13.4.4 View file →
@@ -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 (