PluginProbe
WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress / 9.1.3
WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress v9.1.3
9.1.3 9.1.2 9.1.1 9.1.0 9.0.3 9.0.2 9.0.1 9.0.0 8.5.79 8.5.78 8.5.77 8.5.76 8.5.75 8.5.74 8.5.73 8.5.72 8.5.71 8.5.70 8.5.69 8.5.68 8.5.35 8.5.36 8.5.37 8.5.38 8.5.39 All 222 releases
← All changes | src/Api/Services/TourService.php +5 -0 9.1.09.1.3 View file →
@@ -42,8 +42,13 @@
42 42 if ( is_array( $existing_raw ) && ! empty( $existing_raw ) ) {
43 43 $raw = array_merge( $existing_raw, $raw );
44 44 }
45 45
46 + // If not a video tour, remove any stale video ID from existing data
47 + if ( ( $raw['tour-type'] ?? '' ) !== 'video' ) {
48 + unset( $raw['vidid'] );
49 + }
50 +
46 51 // If the request carries proData (future React pro panels will send this),
47 52 // run the same filter the legacy AJAX stack uses so pro plugin saves its fields.
48 53 if ( $this->is_pro && ! empty( $api_data['proData'] ) && is_array( $api_data['proData'] ) ) {
49 54 // Snapshot floor plan keys before the pro filter runs.