PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.0.2
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.0.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/Platform/Elementor.php +3 -9 3.1.103.0.2 View file →
@@ -94,12 +94,8 @@
94 94 }
95 95 }
96 96
97 97 public function get_saved_templates( $params = [] ) {
98 - if ( ! function_exists( 'is_plugin_active' ) ){
99 - require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
100 - }
101 -
102 98 $_page_number = isset( $params['page'] ) ? intval( $params['page'] ) : 1;
103 99
104 100 $args = [
105 101 'post_type' => 'elementor_library',
@@ -132,13 +128,11 @@
132 128 wp_reset_postdata();
133 129 wp_reset_query();
134 130
135 131 return array(
136 - 'current_page' => $templates->query_vars['paged'],
137 - 'total_page' => $templates->max_num_pages,
138 - 'items' => $templateList,
139 - 'has_elementor' => rest_sanitize_boolean( \is_plugin_active( 'elementor/elementor.php' ) ),
140 - 'has_elementor_pro' => rest_sanitize_boolean( \is_plugin_active( 'elementor-pro/elementor-pro.php' ) ),
132 + 'current_page' => $templates->query_vars['paged'],
133 + 'total_page' => $templates->max_num_pages,
134 + 'items' => $templateList,
141 135 );
142 136 }
143 137
144 138 private function get_export_link( $template_id ) {