PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.16
Yatra – Travel Booking & Tour Operator Software v3.0.16
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
← All changes | app/Providers/BlockServiceProvider.php +4 -2 3.0.2.9 → 3.0.16 View file →
@@ -6,8 +6,9 @@
6 6
7 7 use Yatra\Blocks\TourBlock;
8 8 use Yatra\Blocks\ActivityBlock;
9 9 use Yatra\Blocks\DestinationBlock;
10 +use Yatra\Blocks\TripCategoryBlock;
10 11 use Yatra\Core\Container;
11 12 use Yatra\Core\ServiceProvider;
12 13
13 14 /**
@@ -50,8 +51,9 @@
50 51 // Initialize all blocks
51 52 new TourBlock();
52 53 new ActivityBlock();
53 54 new DestinationBlock();
55 + new TripCategoryBlock();
54 56 }
55 57
56 58 /**
57 59 * Register Yatra block category
@@ -56,12 +58,12 @@
56 58 /**
57 59 * Register Yatra block category
58 60 *
59 61 * @param array $categories Existing block categories
60 - * @param \WP_Block_Editor_Context $context Block editor context
62 + * @param \WP_Block_Editor_Context|null $context Block editor context
61 63 * @return array Modified categories
62 64 */
63 - public function registerBlockCategory(array $categories, \WP_Block_Editor_Context $context): array
65 + public function registerBlockCategory(array $categories, ?\WP_Block_Editor_Context $context = null): array
64 66 {
65 67 // Add Yatra category at the beginning
66 68 array_unshift($categories, [
67 69 'slug' => 'yatra',