PluginProbe
BlockSpare – Gutenberg Blocks, AI Content Generator & Site Builder for News, Magazine & Blogs / 2.6.6
BlockSpare – Gutenberg Blocks, AI Content Generator & Site Builder for News, Magazine & Blogs v2.6.6
5.0.1 4.1.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.1.2 2.5.0 2.5.3 All 39 releases
← All changes | inc/layout/endpoints.php +1 -4 5.0.1 → 2.6.6 View file →
@@ -25,11 +25,9 @@
25 25 const SINGLE_PAGE_ROUTE = 'pages/([A-Za-z])\w+/';
26 26
27 27 const FAVORITE_LAYOUTS_ROUTE = 'layouts/favorites';
28 28 const ALL_LAYOUTS_ROUTE = 'layouts/all';
29 -
30 29 const IMPORT_ROUTE = 'importdata';
31 -
32 30 add_action( 'rest_api_init', __NAMESPACE__ . '\register_layout_endpoints' );
33 31 /**
34 32 * Create custom endpoints for block settings
35 33 */
@@ -70,11 +68,10 @@
70 68 $layouts = blockspare_get_layouts();
71 69 $sections = blockspare_get_sections();
72 70 $blocks = blockspare_get_blocks();
73 71 $pages = blockspare_get_pages();
74 - $templates = blockspare_get_templates();
75 72 $additional_layouts = apply_filters( 'blockspare_additional_layout_components', [] );
76 - $all_layouts = array_merge( $layouts, $sections, $blocks,$pages,$templates, $additional_layouts );
73 + $all_layouts = array_merge( $layouts, $sections, $blocks,$pages, $additional_layouts );
77 74 $request_params = $request->get_params();
78 75
79 76 // Return all layouts if filtering was not requested. "allowed" is the only filter currently supported.
80 77 if ( empty( $request_params['filter'] ) || 'allowed' !== $request_params['filter'] ) {