| @@ -131,8 +131,11 @@ | ||
| 131 | 131 | |
| 132 | 132 | $postdata = array_merge($primary, $post_meta_data); |
| 133 | 133 | // active tab variables |
| 134 | 134 | $active_tab = 'scene'; |
| 135 | + if ( ( isset( $postdata['tour-type'] ) && $postdata['tour-type'] === 'video' ) || ! empty( $postdata['vidid'] ) || ! empty( $postdata['vidurl'] ) ) { | |
| 136 | + $active_tab = 'video'; | |
| 137 | + } | |
| 135 | 138 | $scene_active_tab = 1; |
| 136 | 139 | $hotspot_active_tab = 1; |
| 137 | 140 | if (isset($_GET['active_tab'])) { |
| 138 | 141 | $active_tab = sanitize_text_field(wp_unslash($_GET['active_tab'])); // phpcs:ignore WordPress.Security.NonceVerification.Recommended |