Version Description
Download this release
Release Info
Developer | nko |
Plugin | Visual Portfolio, Photo Gallery & Post Grid |
Version | 1.15.1 |
Comparing to | |
See all releases |
Code changes from version 1.15.0 to 1.15.1
- assets/admin/js/elementor.js +1 -1
- assets/admin/js/layouts-editor.js +1 -1
- assets/admin/js/mce-dropdown.js +1 -1
- assets/admin/js/script.js +1 -1
- assets/admin/js/vc-frontend.js +1 -1
- assets/js/script-preview.js +1 -1
- class-visual-portfolio.php +1 -1
- classes/class-admin.php +6 -6
- classes/class-assets.php +2 -2
- classes/class-elementor-widget.php +2 -2
- classes/class-images.php +4 -0
- readme.md +5 -1
assets/admin/js/elementor.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
* Additional js for Elementor
|
3 |
*
|
4 |
* Name : Visual Portfolio
|
5 |
-
* Version : 1.15.
|
6 |
* Author : nK https://nkdev.info
|
7 |
*/
|
8 |
import { throttle } from 'throttle-debounce';
|
2 |
* Additional js for Elementor
|
3 |
*
|
4 |
* Name : Visual Portfolio
|
5 |
+
* Version : 1.15.1
|
6 |
* Author : nK https://nkdev.info
|
7 |
*/
|
8 |
import { throttle } from 'throttle-debounce';
|
assets/admin/js/layouts-editor.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
-
* Version : 1.15.
|
4 |
* Author : nK https://nkdev.info
|
5 |
*/
|
6 |
import { debounce } from 'throttle-debounce';
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
+
* Version : 1.15.1
|
4 |
* Author : nK https://nkdev.info
|
5 |
*/
|
6 |
import { debounce } from 'throttle-debounce';
|
assets/admin/js/mce-dropdown.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
-
* Version : 1.15.
|
4 |
* Author : nK https://nkdev.info
|
5 |
*/
|
6 |
const {
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
+
* Version : 1.15.1
|
4 |
* Author : nK https://nkdev.info
|
5 |
*/
|
6 |
const {
|
assets/admin/js/script.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
-
* Version : 1.15.
|
4 |
* Author : nK https://nkdev.info
|
5 |
*/
|
6 |
import { debounce } from 'throttle-debounce';
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
+
* Version : 1.15.1
|
4 |
* Author : nK https://nkdev.info
|
5 |
*/
|
6 |
import { debounce } from 'throttle-debounce';
|
assets/admin/js/vc-frontend.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
* Additional js for frontend VC
|
3 |
*
|
4 |
* Name : Visual Portfolio
|
5 |
-
* Version : 1.15.
|
6 |
* Author : nK https://nkdev.info
|
7 |
*/
|
8 |
const {
|
2 |
* Additional js for frontend VC
|
3 |
*
|
4 |
* Name : Visual Portfolio
|
5 |
+
* Version : 1.15.1
|
6 |
* Author : nK https://nkdev.info
|
7 |
*/
|
8 |
const {
|
assets/js/script-preview.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
-
* Version : 1.15.
|
4 |
* Author : nK https://nkdev.info
|
5 |
*/
|
6 |
const $ = window.jQuery;
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
+
* Version : 1.15.1
|
4 |
* Author : nK https://nkdev.info
|
5 |
*/
|
6 |
const $ = window.jQuery;
|
class-visual-portfolio.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Visual Portfolio
|
4 |
* Description: Portfolio post type with visual editor
|
5 |
-
* Version: 1.15.
|
6 |
* Author: nK
|
7 |
* Author URI: https://nkdev.info
|
8 |
* License: GPLv2 or later
|
2 |
/**
|
3 |
* Plugin Name: Visual Portfolio
|
4 |
* Description: Portfolio post type with visual editor
|
5 |
+
* Version: 1.15.1
|
6 |
* Author: nK
|
7 |
* Author URI: https://nkdev.info
|
8 |
* License: GPLv2 or later
|
classes/class-admin.php
CHANGED
@@ -151,13 +151,13 @@ class Visual_Portfolio_Admin {
|
|
151 |
wp_enqueue_style( 'codemirror-addon-matchesonscrollbar', visual_portfolio()->plugin_url . 'assets/vendor/codemirror/addon/search/matchesonscrollbar.css', '', $codemirror_version );
|
152 |
wp_enqueue_style( 'codemirror-theme-eclipse', visual_portfolio()->plugin_url . 'assets/vendor/codemirror/theme/eclipse.css', '', $codemirror_version );
|
153 |
|
154 |
-
wp_enqueue_script( 'visual-portfolio-layout-admin', visual_portfolio()->plugin_url . 'assets/admin/js/layouts-editor.min.js', array( 'jquery' ), '1.15.
|
155 |
-
wp_enqueue_style( 'visual-portfolio-layout-admin', visual_portfolio()->plugin_url . 'assets/admin/css/layouts-editor.min.css', '', '1.15.
|
156 |
wp_localize_script( 'visual-portfolio-layout-admin', 'VPAdminVariables', $data_init );
|
157 |
}
|
158 |
|
159 |
-
wp_enqueue_script( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/js/script.min.js', array( 'jquery', 'wp-data' ), '1.15.
|
160 |
-
wp_enqueue_style( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/css/style.min.css', '', '1.15.
|
161 |
wp_localize_script( 'visual-portfolio-admin', 'VPAdminVariables', $data_init );
|
162 |
}
|
163 |
|
@@ -474,7 +474,7 @@ class Visual_Portfolio_Admin {
|
|
474 |
if ( ! is_blog_installed() ) {
|
475 |
return;
|
476 |
}
|
477 |
-
if ( get_option( 'visual_portfolio_updated_caps' ) === '1.15.
|
478 |
return;
|
479 |
}
|
480 |
|
@@ -551,7 +551,7 @@ class Visual_Portfolio_Admin {
|
|
551 |
$wp_roles->add_cap( 'administrator', $cap );
|
552 |
}
|
553 |
|
554 |
-
update_option( 'visual_portfolio_updated_caps', '1.15.
|
555 |
}
|
556 |
|
557 |
/**
|
151 |
wp_enqueue_style( 'codemirror-addon-matchesonscrollbar', visual_portfolio()->plugin_url . 'assets/vendor/codemirror/addon/search/matchesonscrollbar.css', '', $codemirror_version );
|
152 |
wp_enqueue_style( 'codemirror-theme-eclipse', visual_portfolio()->plugin_url . 'assets/vendor/codemirror/theme/eclipse.css', '', $codemirror_version );
|
153 |
|
154 |
+
wp_enqueue_script( 'visual-portfolio-layout-admin', visual_portfolio()->plugin_url . 'assets/admin/js/layouts-editor.min.js', array( 'jquery' ), '1.15.1', true );
|
155 |
+
wp_enqueue_style( 'visual-portfolio-layout-admin', visual_portfolio()->plugin_url . 'assets/admin/css/layouts-editor.min.css', '', '1.15.1' );
|
156 |
wp_localize_script( 'visual-portfolio-layout-admin', 'VPAdminVariables', $data_init );
|
157 |
}
|
158 |
|
159 |
+
wp_enqueue_script( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/js/script.min.js', array( 'jquery', 'wp-data' ), '1.15.1', true );
|
160 |
+
wp_enqueue_style( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/css/style.min.css', '', '1.15.1' );
|
161 |
wp_localize_script( 'visual-portfolio-admin', 'VPAdminVariables', $data_init );
|
162 |
}
|
163 |
|
474 |
if ( ! is_blog_installed() ) {
|
475 |
return;
|
476 |
}
|
477 |
+
if ( get_option( 'visual_portfolio_updated_caps' ) === '1.15.1' ) {
|
478 |
return;
|
479 |
}
|
480 |
|
551 |
$wp_roles->add_cap( 'administrator', $cap );
|
552 |
}
|
553 |
|
554 |
+
update_option( 'visual_portfolio_updated_caps', '1.15.1' );
|
555 |
}
|
556 |
|
557 |
/**
|
classes/class-assets.php
CHANGED
@@ -332,7 +332,7 @@ class Visual_Portfolio_Assets {
|
|
332 |
);
|
333 |
|
334 |
foreach ( $vp_styles as $name => $data ) {
|
335 |
-
wp_register_style( $name, visual_portfolio()->plugin_url . $data[0], $data[1], '1.15.
|
336 |
}
|
337 |
|
338 |
// Visual Portfolio JS.
|
@@ -424,7 +424,7 @@ class Visual_Portfolio_Assets {
|
|
424 |
);
|
425 |
|
426 |
foreach ( $vp_scripts as $name => $data ) {
|
427 |
-
wp_register_script( $name, visual_portfolio()->plugin_url . $data[0], $data[1], '1.15.
|
428 |
}
|
429 |
}
|
430 |
|
332 |
);
|
333 |
|
334 |
foreach ( $vp_styles as $name => $data ) {
|
335 |
+
wp_register_style( $name, visual_portfolio()->plugin_url . $data[0], $data[1], '1.15.1' );
|
336 |
}
|
337 |
|
338 |
// Visual Portfolio JS.
|
424 |
);
|
425 |
|
426 |
foreach ( $vp_scripts as $name => $data ) {
|
427 |
+
wp_register_script( $name, visual_portfolio()->plugin_url . $data[0], $data[1], '1.15.1', true );
|
428 |
}
|
429 |
}
|
430 |
|
classes/class-elementor-widget.php
CHANGED
@@ -23,9 +23,9 @@ class Visual_Portfolio_Elementor_Widget extends \Elementor\Widget_Base {
|
|
23 |
parent::__construct( $data, $args );
|
24 |
|
25 |
wp_register_script( 'iframe-resizer', visual_portfolio()->plugin_url . 'assets/vendor/iframe-resizer/iframeResizer.min.js', '', '4.2.1', true );
|
26 |
-
wp_register_script( 'visual-portfolio-elementor', visual_portfolio()->plugin_url . 'assets/admin/js/elementor.min.js', array( 'elementor-frontend', 'iframe-resizer', 'jquery' ), '1.15.
|
27 |
|
28 |
-
wp_register_style( 'visual-portfolio-elementor', visual_portfolio()->plugin_url . 'assets/admin/css/elementor.min.css', array(), '1.15.
|
29 |
}
|
30 |
|
31 |
/**
|
23 |
parent::__construct( $data, $args );
|
24 |
|
25 |
wp_register_script( 'iframe-resizer', visual_portfolio()->plugin_url . 'assets/vendor/iframe-resizer/iframeResizer.min.js', '', '4.2.1', true );
|
26 |
+
wp_register_script( 'visual-portfolio-elementor', visual_portfolio()->plugin_url . 'assets/admin/js/elementor.min.js', array( 'elementor-frontend', 'iframe-resizer', 'jquery' ), '1.15.1', true );
|
27 |
|
28 |
+
wp_register_style( 'visual-portfolio-elementor', visual_portfolio()->plugin_url . 'assets/admin/css/elementor.min.css', array(), '1.15.1' );
|
29 |
}
|
30 |
|
31 |
/**
|
classes/class-images.php
CHANGED
@@ -110,6 +110,10 @@ class Visual_Portfolio_Images {
|
|
110 |
return false;
|
111 |
}
|
112 |
|
|
|
|
|
|
|
|
|
113 |
$ratio = self::get_ratio( $width, $height );
|
114 |
$width = $ratio['width'];
|
115 |
$height = $ratio['height'];
|
110 |
return false;
|
111 |
}
|
112 |
|
113 |
+
if ( ! (int) $width || ! (int) $height ) {
|
114 |
+
return false;
|
115 |
+
}
|
116 |
+
|
117 |
$ratio = self::get_ratio( $width, $height );
|
118 |
$width = $ratio['width'];
|
119 |
$height = $ratio['height'];
|
readme.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Requires at least: 4.0.0
|
6 |
* Tested up to: 5.3
|
7 |
* Requires PHP: 5.4
|
8 |
-
* Stable tag: 1.15.
|
9 |
* License: GPLv2 or later
|
10 |
* License URI: <http://www.gnu.org/licenses/gpl-2.0.html>
|
11 |
|
@@ -123,6 +123,10 @@ The manual installation method involves downloading our Visual Portfolio plugin
|
|
123 |
|
124 |
## Changelog ##
|
125 |
|
|
|
|
|
|
|
|
|
126 |
= 1.15.0 =
|
127 |
|
128 |
* added widget for Elementor
|
5 |
* Requires at least: 4.0.0
|
6 |
* Tested up to: 5.3
|
7 |
* Requires PHP: 5.4
|
8 |
+
* Stable tag: 1.15.1
|
9 |
* License: GPLv2 or later
|
10 |
* License URI: <http://www.gnu.org/licenses/gpl-2.0.html>
|
11 |
|
123 |
|
124 |
## Changelog ##
|
125 |
|
126 |
+
= 1.15.1 =
|
127 |
+
|
128 |
+
* fixed errors when upload images without width or height (for example, SVG)
|
129 |
+
|
130 |
= 1.15.0 =
|
131 |
|
132 |
* added widget for Elementor
|