Version Description
(03-06-2022) = * Fix: URL Redirect Issue while Publishing Tour
Download this release
Release Info
Developer | rextheme |
Plugin | WP VR – 360 Panorama and virtual tour creator for WordPress |
Version | 7.3.11 |
Comparing to | |
See all releases |
Code changes from version 7.3.10 to 7.3.11
- README.txt +7 -3
- admin/class-wpvr-admin.php +8 -0
- admin/icon/wpfunnels.png +0 -0
- admin/js/wpvr-admin.js +11 -23
- admin/partials/wpvr_documentation.php +2 -10
- wpvr.php +2 -2
README.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: rextheme, coderexco
|
|
3 |
Tags: virtual tour, real estate tour, panorama, panorama viewer, virtual tour, 360 panorama, interactive tour, 360, Streetview, virtual reality, 360 video, virtual, vr, interactive, 360-degree, equirectangular, google streetview, panoramas
|
4 |
Donate link: https://rextheme.com/wp-vr-360-panorama-and-virtual-tour-creator-for-wordpress/
|
5 |
Requires at least: 5.0
|
6 |
-
Tested up to: 6.0
|
7 |
Requires PHP: 7.0.0
|
8 |
-
Stable tag: 7.3.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -323,11 +323,15 @@ Admins can remove the access from Authors and Editors at any time.
|
|
323 |
|
324 |
== Changelog ==
|
325 |
|
|
|
|
|
|
|
|
|
326 |
= 7.3.10 (01-06-2022) =
|
327 |
* Fix: JS file missing issue
|
328 |
|
329 |
= 7.3.9 (01-06-2022) =
|
330 |
-
* New: WYSIWYG Editor Integration for
|
331 |
* New: Close On-click windows on any click.
|
332 |
|
333 |
|
3 |
Tags: virtual tour, real estate tour, panorama, panorama viewer, virtual tour, 360 panorama, interactive tour, 360, Streetview, virtual reality, 360 video, virtual, vr, interactive, 360-degree, equirectangular, google streetview, panoramas
|
4 |
Donate link: https://rextheme.com/wp-vr-360-panorama-and-virtual-tour-creator-for-wordpress/
|
5 |
Requires at least: 5.0
|
6 |
+
Tested up to: 6.0
|
7 |
Requires PHP: 7.0.0
|
8 |
+
Stable tag: 7.3.11
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
323 |
|
324 |
== Changelog ==
|
325 |
|
326 |
+
|
327 |
+
= 7.3.11 (03-06-2022) =
|
328 |
+
* Fix: URL Redirect Issue while Publishing Tour
|
329 |
+
|
330 |
= 7.3.10 (01-06-2022) =
|
331 |
* Fix: JS file missing issue
|
332 |
|
333 |
= 7.3.9 (01-06-2022) =
|
334 |
+
* New: WYSIWYG Editor Integration for Hotspot Content
|
335 |
* New: Close On-click windows on any click.
|
336 |
|
337 |
|
admin/class-wpvr-admin.php
CHANGED
@@ -139,6 +139,8 @@ class Wpvr_Admin
|
|
139 |
|
140 |
wp_enqueue_script('wp-api');
|
141 |
$adscreen = get_current_screen();
|
|
|
|
|
142 |
wp_enqueue_media();
|
143 |
if ($adscreen->id=="wpvr_item" || $adscreen->id=="toplevel_page_wpvr") {
|
144 |
wp_enqueue_script('summernote', plugin_dir_url(__FILE__) . 'lib/summernote/summernote-lite.min.js', array('jquery'), true);
|
@@ -168,6 +170,12 @@ class Wpvr_Admin
|
|
168 |
'ajaxurl' => admin_url('admin-ajax.php'),
|
169 |
'site_url' => site_url() . '/wp-json/',
|
170 |
'ajax_nonce' => wp_create_nonce('wpvr_global'),
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
));
|
172 |
wp_localize_script('wpvr-global', 'wpvr_id_options', $wpvr_list);
|
173 |
}
|
139 |
|
140 |
wp_enqueue_script('wp-api');
|
141 |
$adscreen = get_current_screen();
|
142 |
+
// var_dump($adscreen);
|
143 |
+
// wp_die();
|
144 |
wp_enqueue_media();
|
145 |
if ($adscreen->id=="wpvr_item" || $adscreen->id=="toplevel_page_wpvr") {
|
146 |
wp_enqueue_script('summernote', plugin_dir_url(__FILE__) . 'lib/summernote/summernote-lite.min.js', array('jquery'), true);
|
170 |
'ajaxurl' => admin_url('admin-ajax.php'),
|
171 |
'site_url' => site_url() . '/wp-json/',
|
172 |
'ajax_nonce' => wp_create_nonce('wpvr_global'),
|
173 |
+
'url_info' => array(
|
174 |
+
'admin_url' => admin_url(),
|
175 |
+
'screen' => $adscreen->action,
|
176 |
+
'url' => $_SERVER['PHP_SELF'],
|
177 |
+
'param' => $_GET,
|
178 |
+
),
|
179 |
));
|
180 |
wp_localize_script('wpvr-global', 'wpvr_id_options', $wpvr_list);
|
181 |
}
|
admin/icon/wpfunnels.png
ADDED
Binary file
|
admin/js/wpvr-admin.js
CHANGED
@@ -299,9 +299,8 @@
|
|
299 |
var getCookiePostID = getCookie("postID");
|
300 |
|
301 |
const urlParams = getParameterByName("active_tab");
|
302 |
-
const action =
|
303 |
-
let
|
304 |
-
let getPostID = getUrl.get('post');
|
305 |
|
306 |
if(getCookiePostID == getPostID){
|
307 |
if(urlParams == '' || urlParams == undefined){
|
@@ -342,7 +341,6 @@
|
|
342 |
var panodata = '';
|
343 |
var panolist = '';
|
344 |
}
|
345 |
-
console.log(panodata);
|
346 |
|
347 |
jQuery.ajax({
|
348 |
|
@@ -381,20 +379,18 @@
|
|
381 |
}, 500);
|
382 |
} else {
|
383 |
flag_ok = true;
|
384 |
-
|
385 |
-
var
|
386 |
-
var pathname = url.pathname
|
387 |
var oldUrl = '';
|
388 |
let params = (new URL(document.location)).searchParams;
|
389 |
let active_tab = params.get('active_tab');
|
390 |
-
|
391 |
-
|
392 |
setCookie('redirectUrl', oldUrl, 1);
|
393 |
setCookie('postID', postid, 1);
|
394 |
}else{
|
395 |
-
var makeEdit = pathname.split('/');
|
396 |
setCookie('postID', postid, 1);
|
397 |
-
|
398 |
setCookie('redirectUrl', oldUrl, 1);
|
399 |
}
|
400 |
$('#publish').trigger('click');
|
@@ -1240,19 +1236,11 @@
|
|
1240 |
|
1241 |
$(document).on("click", ".rex-pano-nav-menu.main-nav ul li span", function () {
|
1242 |
var screen = $(this).parent().attr('data-screen');
|
1243 |
-
|
1244 |
-
|
1245 |
-
|
1246 |
-
var pathname = url.pathname
|
1247 |
-
|
1248 |
-
if ( '/wp-admin/post-new.php' == pathname ){
|
1249 |
-
var search_perameter = window.location.search.split('&');
|
1250 |
-
var makeUrl = origin + pathname + search_perameter[0]
|
1251 |
-
var newUrl = makeUrl + "&active_tab=" + screen;
|
1252 |
}else{
|
1253 |
-
var
|
1254 |
-
var makeUrl = origin + pathname + search_perameter[0] +"&" +search_perameter[1]
|
1255 |
-
var newUrl = makeUrl + "&active_tab=" + screen;
|
1256 |
}
|
1257 |
|
1258 |
|
299 |
var getCookiePostID = getCookie("postID");
|
300 |
|
301 |
const urlParams = getParameterByName("active_tab");
|
302 |
+
const action = wpvr_global_obj.url_info.param.action;
|
303 |
+
let getPostID = wpvr_global_obj.url_info.param.post;
|
|
|
304 |
|
305 |
if(getCookiePostID == getPostID){
|
306 |
if(urlParams == '' || urlParams == undefined){
|
341 |
var panodata = '';
|
342 |
var panolist = '';
|
343 |
}
|
|
|
344 |
|
345 |
jQuery.ajax({
|
346 |
|
379 |
}, 500);
|
380 |
} else {
|
381 |
flag_ok = true;
|
382 |
+
|
383 |
+
var url_info = wpvr_global_obj.url_info
|
|
|
384 |
var oldUrl = '';
|
385 |
let params = (new URL(document.location)).searchParams;
|
386 |
let active_tab = params.get('active_tab');
|
387 |
+
oldUrl = url_info.admin_url+"post.php?"+"post="+postid+"&action=edit"+"&active_tab="+active_tab;
|
388 |
+
if ( 'add' == url_info.screen ){
|
389 |
setCookie('redirectUrl', oldUrl, 1);
|
390 |
setCookie('postID', postid, 1);
|
391 |
}else{
|
|
|
392 |
setCookie('postID', postid, 1);
|
393 |
+
|
394 |
setCookie('redirectUrl', oldUrl, 1);
|
395 |
}
|
396 |
$('#publish').trigger('click');
|
1236 |
|
1237 |
$(document).on("click", ".rex-pano-nav-menu.main-nav ul li span", function () {
|
1238 |
var screen = $(this).parent().attr('data-screen');
|
1239 |
+
var url_info = wpvr_global_obj.url_info
|
1240 |
+
if ( 'add' == url_info.screen ){
|
1241 |
+
var newUrl = url_info.admin_url+"post-new.php?"+"post_type="+url_info.param.post_type+"&active_tab="+screen;
|
|
|
|
|
|
|
|
|
|
|
|
|
1242 |
}else{
|
1243 |
+
var newUrl = url_info.admin_url+"post.php?"+"post="+url_info.param.post+"&action=edit"+"&active_tab="+screen;
|
|
|
|
|
1244 |
}
|
1245 |
|
1246 |
|
admin/partials/wpvr_documentation.php
CHANGED
@@ -815,19 +815,11 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
815 |
<form class="wpvr-version">
|
816 |
<h6><?php _e('Select a Version to Rollback', 'wpvr'); ?></h6>
|
817 |
<select name="wpvr_version">
|
|
|
|
|
818 |
<option value="7.3.8">7.3.8</option>
|
819 |
<option value="7.3.7">7.3.7</option>
|
820 |
<option value="7.3.6">7.3.6</option>
|
821 |
-
<option value="7.3.5">7.3.5</option>
|
822 |
-
<option value="7.3.4">7.3.4</option>
|
823 |
-
<option value="7.3.3">7.3.3</option>
|
824 |
-
<option value="7.3.2">7.3.2</option>
|
825 |
-
<option value="7.3.1">7.3.1</option>
|
826 |
-
<option value="7.3.0">7.3.0</option>
|
827 |
-
<option value="7.2.9">7.2.9</option>
|
828 |
-
<option value="7.2.8">7.2.8</option>
|
829 |
-
<option value="7.2.7">7.2.7</option>
|
830 |
-
<option value="7.2.6">7.2.6</option>
|
831 |
</select>
|
832 |
<input class="wpvr-btn" type="submit" value="Rollback">
|
833 |
</form>
|
815 |
<form class="wpvr-version">
|
816 |
<h6><?php _e('Select a Version to Rollback', 'wpvr'); ?></h6>
|
817 |
<select name="wpvr_version">
|
818 |
+
<option value="7.3.10">7.3.8</option>
|
819 |
+
<option value="7.3.9">7.3.8</option>
|
820 |
<option value="7.3.8">7.3.8</option>
|
821 |
<option value="7.3.7">7.3.7</option>
|
822 |
<option value="7.3.6">7.3.6</option>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
823 |
</select>
|
824 |
<input class="wpvr-btn" type="submit" value="Rollback">
|
825 |
</form>
|
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.3.
|
20 |
* Author: Rextheme
|
21 |
* Author URI: http://rextheme.com/
|
22 |
* License: GPL-2.0+
|
@@ -35,7 +35,7 @@ require plugin_dir_path(__FILE__) . 'elementor/elementor.php';
|
|
35 |
* Start at version 1.0.0 and use SemVer - https://semver.org
|
36 |
* Rename this for your plugin and update it as you release new versions.
|
37 |
*/
|
38 |
-
define('WPVR', '7.3.
|
39 |
define('WPVR_FILE', __FILE__);
|
40 |
define("WPVR_PLUGIN_DIR_URL", plugin_dir_url(__FILE__));
|
41 |
define("WPVR_PLUGIN_DIR_PATH", plugin_dir_path(__FILE__));
|
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.3.11
|
20 |
* Author: Rextheme
|
21 |
* Author URI: http://rextheme.com/
|
22 |
* License: GPL-2.0+
|
35 |
* Start at version 1.0.0 and use SemVer - https://semver.org
|
36 |
* Rename this for your plugin and update it as you release new versions.
|
37 |
*/
|
38 |
+
define('WPVR', '7.3.11');
|
39 |
define('WPVR_FILE', __FILE__);
|
40 |
define("WPVR_PLUGIN_DIR_URL", plugin_dir_url(__FILE__));
|
41 |
define("WPVR_PLUGIN_DIR_PATH", plugin_dir_path(__FILE__));
|