WP VR – 360 Panorama and virtual tour creator for WordPress - Version 7.2.8

Version Description

(06-05-2021) = * Fix: PHP Warnings on Backend & Frontend * Fix: Audio Issue for self-hosted videos on hotspots

Download this release

Release Info

Developer rextheme
Plugin Icon 128x128 WP VR – 360 Panorama and virtual tour creator for WordPress
Version 7.2.8
Comparing to
See all releases

Code changes from version 7.2.7 to 7.2.8

README.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://rextheme.com/wp-vr-360-panorama-and-virtual-tour-creator-fo
5
  Requires at least: 5.0
6
  Tested up to: 5.7
7
  Requires PHP: 7.0.0
8
- Stable tag: 7.2.7
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -302,6 +302,10 @@ Simply add “/plugins/wpvr” to the exclusion field (or use the location where
302
 
303
  == Changelog ==
304
 
 
 
 
 
305
  = 7.2.7 (12-04-2021) =
306
  * Tweak: Rollback versions updated.
307
  * Tweak: Video tab warning pop-up redesigned.
5
  Requires at least: 5.0
6
  Tested up to: 5.7
7
  Requires PHP: 7.0.0
8
+ Stable tag: 7.2.8
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
302
 
303
  == Changelog ==
304
 
305
+ = 7.2.8 (06-05-2021) =
306
+ * Fix: PHP Warnings on Backend & Frontend
307
+ * Fix: Audio Issue for self-hosted videos on hotspots
308
+
309
  = 7.2.7 (12-04-2021) =
310
  * Tweak: Rollback versions updated.
311
  * Tweak: Video tab warning pop-up redesigned.
admin/partials/wpvr_documentation.php CHANGED
@@ -728,11 +728,11 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
728
  <form class="wpvr-version">
729
  <h6><?php _e('Select a Version to Rollback','wpvr'); ?></h6>
730
  <select name="wpvr_version">
 
731
  <option value="7.2.6">7.2.6</option>
732
  <option value="7.2.5">7.2.5</option>
733
  <option value="7.2.4">7.2.4</option>
734
  <option value="7.2.3">7.2.3</option>
735
- <option value="7.2.2">7.2.2</option>
736
  </select>
737
  <input class="wpvr-btn" type="submit" value="Rollback">
738
  </form>
728
  <form class="wpvr-version">
729
  <h6><?php _e('Select a Version to Rollback','wpvr'); ?></h6>
730
  <select name="wpvr_version">
731
+ <option value="7.2.7">7.2.7</option>
732
  <option value="7.2.6">7.2.6</option>
733
  <option value="7.2.5">7.2.5</option>
734
  <option value="7.2.4">7.2.4</option>
735
  <option value="7.2.3">7.2.3</option>
 
736
  </select>
737
  <input class="wpvr-btn" type="submit" value="Rollback">
738
  </form>
public/js/wpvr-public.js CHANGED
@@ -58,7 +58,8 @@ jQuery(document).ready(function($) {
58
  $(this).parent(".custom-ifram-wrapper").fadeOut();
59
  $(this).parents(".pano-wrap").removeClass("show-modal");
60
 
61
- $('iframe').attr('src', $('iframe').attr('src'));
 
62
  if ($('#wpvr-video').length != 0) {
63
  $('#wpvr-video').get(0).pause();
64
  }
@@ -85,4 +86,4 @@ jQuery(document).ready(function($) {
85
  $('.wpvr-mobile-notice').fadeOut();
86
  $.cookie('wpvr_mobile_notice', 'true');
87
  });
88
- });
58
  $(this).parent(".custom-ifram-wrapper").fadeOut();
59
  $(this).parents(".pano-wrap").removeClass("show-modal");
60
 
61
+ $('.vr-iframe').attr('src', '');
62
+ // $('iframe').attr('src', $('iframe').attr('src'));
63
  if ($('#wpvr-video').length != 0) {
64
  $('#wpvr-video').get(0).pause();
65
  }
86
  $('.wpvr-mobile-notice').fadeOut();
87
  $.cookie('wpvr_mobile_notice', 'true');
88
  });
89
+ });
wpvr.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: WP VR
17
  * Plugin URI: https://rextheme.com/wpvr/
18
  * Description: WP VR - 360 Panorama and virtual tour creator for WordPress is a customized panaroma & virtual builder tool for WordPress Website.
19
- * Version: 7.2.7
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+
@@ -34,7 +34,7 @@ require plugin_dir_path(__FILE__) . 'elementor/elementor.php';
34
  * Start at version 1.0.0 and use SemVer - https://semver.org
35
  * Rename this for your plugin and update it as you release new versions.
36
  */
37
- define('WPVR', '7.2.7');
38
  define('WPVR_FILE', __FILE__);
39
  define("WPVR_PLUGIN_DIR_URL", plugin_dir_url(__FILE__));
40
  define("WPVR_PLUGIN_DIR_PATH", plugin_dir_path(__FILE__));
@@ -583,7 +583,7 @@ function wpvr_block_render($attributes)
583
  if ($mobile_media_resize == "true") {
584
  if ($file_accessible == "1") {
585
  $image_info = getimagesize($device_scene);
586
- if ($image_info[0] > 4096) {
587
  $src_to_id_for_mobile = '';
588
  $src_to_id_for_desktop = '';
589
  if (wpvr_isMobileDevice()) {
@@ -598,7 +598,7 @@ function wpvr_block_render($attributes)
598
  $src_to_id_for_desktop = attachment_url_to_postid($panoscenes['scene-attachment-url']);
599
  if ($src_to_id_for_desktop) {
600
  $desktop_scene = wp_get_attachment_image_src($src_to_id_for_mobile, 'full');
601
- if ($desktop_scene[0]) {
602
  $device_scene = $desktop_scene[0];
603
  }
604
  }
16
  * Plugin Name: WP VR
17
  * Plugin URI: https://rextheme.com/wpvr/
18
  * Description: WP VR - 360 Panorama and virtual tour creator for WordPress is a customized panaroma & virtual builder tool for WordPress Website.
19
+ * Version: 7.2.8
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+
34
  * Start at version 1.0.0 and use SemVer - https://semver.org
35
  * Rename this for your plugin and update it as you release new versions.
36
  */
37
+ define('WPVR', '7.2.8');
38
  define('WPVR_FILE', __FILE__);
39
  define("WPVR_PLUGIN_DIR_URL", plugin_dir_url(__FILE__));
40
  define("WPVR_PLUGIN_DIR_PATH", plugin_dir_path(__FILE__));
583
  if ($mobile_media_resize == "true") {
584
  if ($file_accessible == "1") {
585
  $image_info = getimagesize($device_scene);
586
+ if ( $image_info && $image_info[0] > 4096) {
587
  $src_to_id_for_mobile = '';
588
  $src_to_id_for_desktop = '';
589
  if (wpvr_isMobileDevice()) {
598
  $src_to_id_for_desktop = attachment_url_to_postid($panoscenes['scene-attachment-url']);
599
  if ($src_to_id_for_desktop) {
600
  $desktop_scene = wp_get_attachment_image_src($src_to_id_for_mobile, 'full');
601
+ if ( $desktop_scene && $desktop_scene[0] ) {
602
  $device_scene = $desktop_scene[0];
603
  }
604
  }