All-in-One Video Gallery - Version 1.6.3

Version Description

  • Fix: Unfortunately, there were some bugs in the 1.6.2 release and this is an immediate release which addresses those issues.
Download this release

Release Info

Developer plugins360
Plugin Icon 128x128 All-in-One Video Gallery
Version 1.6.3
Comparing to
See all releases

Code changes from version 1.6.2 to 1.6.3

README.txt CHANGED
@@ -6,7 +6,7 @@ Tags: player, youtube, vimeo, live, vlog
6
  Requires at least: 4.4.0
7
  Tested up to: 5.2
8
  Requires PHP: 5.3.0
9
- Stable tag: 1.6.2
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -93,6 +93,10 @@ Most likely rewrite rules were not registered properly for some reason. Go to "W
93
 
94
  == Changelog ==
95
 
 
 
 
 
96
  = 1.6.2 =
97
 
98
  * New: Support for Yoast breadcrumbs.
@@ -189,6 +193,10 @@ Most likely rewrite rules were not registered properly for some reason. Go to "W
189
 
190
  == Upgrade Notice ==
191
 
 
 
 
 
192
  = 1.6.2 =
193
 
194
  * New: Support for Yoast breadcrumbs.
6
  Requires at least: 4.4.0
7
  Tested up to: 5.2
8
  Requires PHP: 5.3.0
9
+ Stable tag: 1.6.3
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
93
 
94
  == Changelog ==
95
 
96
+ = 1.6.3 =
97
+
98
+ * Fix: Unfortunately, there were some bugs in the 1.6.2 release and this is an immediate release which addresses those issues.
99
+
100
  = 1.6.2 =
101
 
102
  * New: Support for Yoast breadcrumbs.
193
 
194
  == Upgrade Notice ==
195
 
196
+ = 1.6.3 =
197
+
198
+ * Fix: Unfortunately, there were some bugs in the 1.6.2 release and this is an immediate release which addresses those issues.
199
+
200
  = 1.6.2 =
201
 
202
  * New: Support for Yoast breadcrumbs.
admin/shortcode-builder.php CHANGED
@@ -29,20 +29,22 @@ class AIOVG_Admin_Shortcode_Builder {
29
  public function media_buttons() {
30
  global $pagenow, $typenow;
31
 
32
- // check if the post/page uses Gutenberg editor
33
- if ( aiovg_is_gutenberg_page() ) {
34
  return;
35
- }
36
 
37
  // check if this is our custom post type page
38
  if ( in_array( $typenow, array( 'aiovg_videos', 'aiovg_automations' ) ) ) {
39
  return;
40
  }
41
 
42
- // Only run in post/page creation and edit screens
43
- if ( in_array( $pagenow, array( 'post.php', 'page.php', 'post-new.php', 'post-edit.php' ) ) ) {
44
- printf( '<a href="#aiovg-shortcode-builder" class="button button-primary aiovg-media-button" id="aiovg-media-button"><span class="wp-media-buttons-icon dashicons dashicons-playlist-video"></span> %s</a>', __( 'Video Player & Gallery', 'all-in-one-video-gallery' ) );
45
  }
 
 
46
  }
47
 
48
  /**
@@ -53,32 +55,34 @@ class AIOVG_Admin_Shortcode_Builder {
53
  public function admin_footer() {
54
  global $pagenow, $typenow;
55
 
56
- // check if the post/page uses Gutenberg editor
57
- if ( aiovg_is_gutenberg_page() ) {
58
  return;
59
- }
60
 
61
  // check if this is our custom post type page
62
  if ( in_array( $typenow, array( 'aiovg_videos', 'aiovg_automations' ) ) ) {
63
  return;
64
  }
65
 
66
- // Only run in post/page creation and edit screens
67
- if ( in_array( $pagenow, array( 'post.php', 'page.php', 'post-new.php', 'post-edit.php' ) ) ) {
68
- // Shortcodes
69
- $shortcodes = array(
70
- 'categories' => __( 'Video Categories', 'all-in-one-video-gallery' ) . ' - [aiovg_categories]',
71
- 'videos' => __( 'Video Gallery', 'all-in-one-video-gallery' ) . ' - [aiovg_videos]',
72
- 'video' => __( 'Single Video', 'all-in-one-video-gallery' ) . ' - [aiovg_video]',
73
- 'search_form' => __( 'Search Form', 'all-in-one-video-gallery' ) . ' - [aiovg_search_form]'
74
- );
75
-
76
- // Fields
77
- $fields = aiovg_get_block_fields();
78
-
79
- // ...
80
- require_once AIOVG_PLUGIN_DIR . 'admin/partials/shortcode-builder.php';
81
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  }
83
 
84
  }
29
  public function media_buttons() {
30
  global $pagenow, $typenow;
31
 
32
+ // Only run in post/page creation and edit screens
33
+ if ( ! in_array( $pagenow, array( 'post.php', 'page.php', 'post-new.php', 'post-edit.php' ) ) ) {
34
  return;
35
+ }
36
 
37
  // check if this is our custom post type page
38
  if ( in_array( $typenow, array( 'aiovg_videos', 'aiovg_automations' ) ) ) {
39
  return;
40
  }
41
 
42
+ // check if the post/page uses Gutenberg editor
43
+ if ( aiovg_is_gutenberg_page() ) {
44
+ return;
45
  }
46
+
47
+ printf( '<a href="#aiovg-shortcode-builder" class="button button-primary aiovg-media-button" id="aiovg-media-button"><span class="wp-media-buttons-icon dashicons dashicons-playlist-video"></span> %s</a>', __( 'Video Player & Gallery', 'all-in-one-video-gallery' ) );
48
  }
49
 
50
  /**
55
  public function admin_footer() {
56
  global $pagenow, $typenow;
57
 
58
+ // Only run in post/page creation and edit screens
59
+ if ( ! in_array( $pagenow, array( 'post.php', 'page.php', 'post-new.php', 'post-edit.php' ) ) ) {
60
  return;
61
+ }
62
 
63
  // check if this is our custom post type page
64
  if ( in_array( $typenow, array( 'aiovg_videos', 'aiovg_automations' ) ) ) {
65
  return;
66
  }
67
 
68
+ // check if the post/page uses Gutenberg editor
69
+ if ( aiovg_is_gutenberg_page() ) {
70
+ return;
 
 
 
 
 
 
 
 
 
 
 
 
71
  }
72
+
73
+ // Shortcodes
74
+ $shortcodes = array(
75
+ 'categories' => __( 'Video Categories', 'all-in-one-video-gallery' ) . ' - [aiovg_categories]',
76
+ 'videos' => __( 'Video Gallery', 'all-in-one-video-gallery' ) . ' - [aiovg_videos]',
77
+ 'video' => __( 'Single Video', 'all-in-one-video-gallery' ) . ' - [aiovg_video]',
78
+ 'search_form' => __( 'Search Form', 'all-in-one-video-gallery' ) . ' - [aiovg_search_form]'
79
+ );
80
+
81
+ // Fields
82
+ $fields = aiovg_get_block_fields();
83
+
84
+ // ...
85
+ require_once AIOVG_PLUGIN_DIR . 'admin/partials/shortcode-builder.php';
86
  }
87
 
88
  }
all-in-one-video-gallery.php CHANGED
@@ -11,7 +11,7 @@
11
  * Plugin Name: All-in-One Video Gallery
12
  * Plugin URI: https://plugins360.com/all-in-one-video-gallery/
13
  * Description: No coding required. A Responsive & Lightweight video gallery plugin. HTML5 Video Player, Custom Post Type interface, Categories, Visual Gallery Builder (Gutenberg), forms to Search Videos, Social Sharing and everything you will need to build a YouTube/Vimeo like video sharing website.
14
- * Version: 1.6.2
15
  * Author: Team Plugins360
16
  * Author URI: https://plugins360.com
17
  * License: GPL-2.0+
@@ -76,7 +76,7 @@ if ( !function_exists( 'aiovg_fs' ) ) {
76
 
77
  // The current version of the plugin
78
  if ( !defined( 'AIOVG_PLUGIN_VERSION' ) ) {
79
- define( 'AIOVG_PLUGIN_VERSION', '1.6.2' );
80
  }
81
  // The unique identifier of the plugin
82
  if ( !defined( 'AIOVG_PLUGIN_SLUG' ) ) {
11
  * Plugin Name: All-in-One Video Gallery
12
  * Plugin URI: https://plugins360.com/all-in-one-video-gallery/
13
  * Description: No coding required. A Responsive & Lightweight video gallery plugin. HTML5 Video Player, Custom Post Type interface, Categories, Visual Gallery Builder (Gutenberg), forms to Search Videos, Social Sharing and everything you will need to build a YouTube/Vimeo like video sharing website.
14
+ * Version: 1.6.3
15
  * Author: Team Plugins360
16
  * Author URI: https://plugins360.com
17
  * License: GPL-2.0+
76
 
77
  // The current version of the plugin
78
  if ( !defined( 'AIOVG_PLUGIN_VERSION' ) ) {
79
+ define( 'AIOVG_PLUGIN_VERSION', '1.6.3' );
80
  }
81
  // The unique identifier of the plugin
82
  if ( !defined( 'AIOVG_PLUGIN_SLUG' ) ) {