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/Migrations/TripMigration.php +2 -2 3.0.4 → 3.0.16 View file →
@@ -46,9 +46,9 @@
46 46 $existingTripId = null;
47 47
48 48 if ($this->isForceMigration()) {
49 49 // Force migration: Always insert new (create duplicates)
50 - $slug = $this->generateUniqueSlug($baseSlug, 'yatra_new_trips');
50 + $slug = $this->generateUniqueSlug($baseSlug, 'yatra_trips');
51 51 } else {
52 52 // Regular migration: Check if already exists
53 53 $existingTripId = $this->wpdb->get_var($this->wpdb->prepare(
54 54 "SELECT id FROM " . TripsTable::getTableName() . " WHERE slug = %s",
@@ -56,9 +56,9 @@
56 56 ));
57 57
58 58 if (!$existingTripId) {
59 59 // Generate unique slug for new insert
60 - $slug = $this->generateUniqueSlug($baseSlug, 'yatra_new_trips');
60 + $slug = $this->generateUniqueSlug($baseSlug, 'yatra_trips');
61 61 }
62 62 }
63 63
64 64 // Raw SQL: get_post_thumbnail_id internally calls get_post_meta for _thumbnail_id