Visual Portfolio, Photo Gallery & Post Grid - Version 1.13.2

Version Description

Download this release

Release Info

Developer nko
Plugin Icon 128x128 Visual Portfolio, Photo Gallery & Post Grid
Version 1.13.2
Comparing to
See all releases

Code changes from version 1.13.1 to 1.13.2

assets/admin/js/layouts-editor.js CHANGED
@@ -1,6 +1,6 @@
1
  /*!
2
  * Name : Visual Portfolio
3
- * Version : 1.13.1
4
  * Author : nK https://nkdev.info
5
  */
6
  import { debounce } from 'throttle-debounce';
1
  /*!
2
  * Name : Visual Portfolio
3
+ * Version : 1.13.2
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.13.1
4
  * Author : nK https://nkdev.info
5
  */
6
  const {
1
  /*!
2
  * Name : Visual Portfolio
3
+ * Version : 1.13.2
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.13.1
4
  * Author : nK https://nkdev.info
5
  */
6
  import { debounce } from 'throttle-debounce';
1
  /*!
2
  * Name : Visual Portfolio
3
+ * Version : 1.13.2
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.13.1
6
  * Author : nK https://nkdev.info
7
  */
8
  const {
2
  * Additional js for frontend VC
3
  *
4
  * Name : Visual Portfolio
5
+ * Version : 1.13.2
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.13.1
4
  * Author : nK https://nkdev.info
5
  */
6
  ( function( $ ) {
1
  /*!
2
  * Name : Visual Portfolio
3
+ * Version : 1.13.2
4
  * Author : nK https://nkdev.info
5
  */
6
  ( function( $ ) {
assets/js/script.js CHANGED
@@ -1,6 +1,6 @@
1
  /*!
2
  * Name : Visual Portfolio
3
- * Version : 1.13.1
4
  * Author : nK https://nkdev.info
5
  */
6
 
1
  /*!
2
  * Name : Visual Portfolio
3
+ * Version : 1.13.2
4
  * Author : nK https://nkdev.info
5
  */
6
 
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.13.1
6
  * Author: nK
7
  * Author URI: https://nkdev.info
8
  * License: GPLv2 or later
@@ -220,9 +220,9 @@ class Visual_Portfolio {
220
  }
221
 
222
  // Visual Portfolio.
223
- wp_register_script( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/js/script.min.js', $vp_deps, '1.13.1', true );
224
- wp_register_style( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/css/style.min.css', $vp_style_deps, '1.13.1' );
225
- wp_register_style( 'visual-portfolio-noscript', visual_portfolio()->plugin_url . 'assets/css/noscript.min.css', $vp_style_deps, '1.13.1' );
226
 
227
  // Visual Portfolio data.
228
  $data_init = array(
2
  /**
3
  * Plugin Name: Visual Portfolio
4
  * Description: Portfolio post type with visual editor
5
+ * Version: 1.13.2
6
  * Author: nK
7
  * Author URI: https://nkdev.info
8
  * License: GPLv2 or later
220
  }
221
 
222
  // Visual Portfolio.
223
+ wp_register_script( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/js/script.min.js', $vp_deps, '1.13.2', true );
224
+ wp_register_style( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/css/style.min.css', $vp_style_deps, '1.13.2' );
225
+ wp_register_style( 'visual-portfolio-noscript', visual_portfolio()->plugin_url . 'assets/css/noscript.min.css', $vp_style_deps, '1.13.2' );
226
 
227
  // Visual Portfolio data.
228
  $data_init = array(
classes/class-admin.php CHANGED
@@ -152,13 +152,13 @@ class Visual_Portfolio_Admin {
152
  wp_enqueue_style( 'codemirror-addon-matchesonscrollbar', visual_portfolio()->plugin_url . 'assets/vendor/codemirror/addon/search/matchesonscrollbar.css', '', $codemirror_version );
153
  wp_enqueue_style( 'codemirror-theme-eclipse', visual_portfolio()->plugin_url . 'assets/vendor/codemirror/theme/eclipse.css', '', $codemirror_version );
154
 
155
- wp_enqueue_script( 'visual-portfolio-layout-admin', visual_portfolio()->plugin_url . 'assets/admin/js/layouts-editor.min.js', array( 'jquery' ), '1.13.1', true );
156
- wp_enqueue_style( 'visual-portfolio-layout-admin', visual_portfolio()->plugin_url . 'assets/admin/css/layouts-editor.min.css', '', '1.13.1' );
157
  wp_localize_script( 'visual-portfolio-layout-admin', 'VPAdminVariables', $data_init );
158
  }
159
 
160
- wp_enqueue_script( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/js/script.min.js', array( 'jquery' ), '1.13.1', true );
161
- wp_enqueue_style( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/css/style.min.css', '', '1.13.1' );
162
  wp_localize_script( 'visual-portfolio-admin', 'VPAdminVariables', $data_init );
163
  }
164
 
@@ -496,7 +496,7 @@ class Visual_Portfolio_Admin {
496
  if ( ! is_blog_installed() ) {
497
  return;
498
  }
499
- if ( get_option( 'visual_portfolio_updated_caps' ) === '1.13.1' ) {
500
  return;
501
  }
502
 
@@ -573,7 +573,7 @@ class Visual_Portfolio_Admin {
573
  $wp_roles->add_cap( 'administrator', $cap );
574
  }
575
 
576
- update_option( 'visual_portfolio_updated_caps', '1.13.1' );
577
  }
578
 
579
  /**
152
  wp_enqueue_style( 'codemirror-addon-matchesonscrollbar', visual_portfolio()->plugin_url . 'assets/vendor/codemirror/addon/search/matchesonscrollbar.css', '', $codemirror_version );
153
  wp_enqueue_style( 'codemirror-theme-eclipse', visual_portfolio()->plugin_url . 'assets/vendor/codemirror/theme/eclipse.css', '', $codemirror_version );
154
 
155
+ wp_enqueue_script( 'visual-portfolio-layout-admin', visual_portfolio()->plugin_url . 'assets/admin/js/layouts-editor.min.js', array( 'jquery' ), '1.13.2', true );
156
+ wp_enqueue_style( 'visual-portfolio-layout-admin', visual_portfolio()->plugin_url . 'assets/admin/css/layouts-editor.min.css', '', '1.13.2' );
157
  wp_localize_script( 'visual-portfolio-layout-admin', 'VPAdminVariables', $data_init );
158
  }
159
 
160
+ wp_enqueue_script( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/js/script.min.js', array( 'jquery' ), '1.13.2', true );
161
+ wp_enqueue_style( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/css/style.min.css', '', '1.13.2' );
162
  wp_localize_script( 'visual-portfolio-admin', 'VPAdminVariables', $data_init );
163
  }
164
 
496
  if ( ! is_blog_installed() ) {
497
  return;
498
  }
499
+ if ( get_option( 'visual_portfolio_updated_caps' ) === '1.13.2' ) {
500
  return;
501
  }
502
 
573
  $wp_roles->add_cap( 'administrator', $cap );
574
  }
575
 
576
+ update_option( 'visual_portfolio_updated_caps', '1.13.2' );
577
  }
578
 
579
  /**
classes/class-get-portfolio.php CHANGED
@@ -608,7 +608,7 @@ class Visual_Portfolio_Get {
608
  'url' => get_permalink(),
609
  'title' => get_the_title(),
610
  'format' => get_post_format() ? : 'standard',
611
- 'published_time' => $the_post->post_date,
612
  'filter' => implode( ',', $filter_values ),
613
  'image_id' => 'attachment' === get_post_type() ? get_the_ID() : get_post_thumbnail_id( get_the_ID() ),
614
  'categories' => $categories,
@@ -925,7 +925,7 @@ class Visual_Portfolio_Get {
925
  }
926
 
927
  // add published date.
928
- $images[ $k ]['published_time'] = $attachment->post_date;
929
  }
930
  }
931
 
608
  'url' => get_permalink(),
609
  'title' => get_the_title(),
610
  'format' => get_post_format() ? : 'standard',
611
+ 'published_time' => get_the_date( 'Y-m-d H:i:s', $the_post ),
612
  'filter' => implode( ',', $filter_values ),
613
  'image_id' => 'attachment' === get_post_type() ? get_the_ID() : get_post_thumbnail_id( get_the_ID() ),
614
  'categories' => $categories,
925
  }
926
 
927
  // add published date.
928
+ $images[ $k ]['published_time'] = get_the_date( 'Y-m-d H:i:s', $attachment );
929
  }
930
  }
931
 
readme.md CHANGED
@@ -5,7 +5,7 @@
5
  * Requires at least: 4.0.0
6
  * Tested up to: 5.2
7
  * Requires PHP: 5.4
8
- * Stable tag: 1.13.1
9
  * License: GPLv2 or later
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -122,6 +122,10 @@ The manual installation method involves downloading our Visual Portfolio plugin
122
 
123
  ## Changelog ##
124
 
 
 
 
 
125
  = 1.13.1 =
126
 
127
  * updated FontAwesome
5
  * Requires at least: 4.0.0
6
  * Tested up to: 5.2
7
  * Requires PHP: 5.4
8
+ * Stable tag: 1.13.2
9
  * License: GPLv2 or later
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
122
 
123
  ## Changelog ##
124
 
125
+ = 1.13.2 =
126
+
127
+ * fixed incorrect post date if something filters it (for example Events Manager plugin). Thanks to https://wordpress.org/support/topic/date-problem-with-events-and-1-13-1-version/
128
+
129
  = 1.13.1 =
130
 
131
  * updated FontAwesome