PluginProbe
Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels / 2.6.3
Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels v2.6.3
2.9.1 2.9.0 trunk 1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 2.0.0 2.1.0 2.2.0 2.3.2 2.3.3 2.3.5 2.3.6 2.3.8 2.3.9 2.4.3 All 37 releases
← All changes | automatic-youtube-gallery.php +13 -6 2.4.32.6.3 View file →
@@ -10,9 +10,9 @@
10 10 * @wordpress-plugin
11 11 * Plugin Name: Automatic YouTube Gallery
12 12 * Plugin URI: https://plugins360.com/automatic-youtube-gallery/
13 13 * Description: Create responsive, modern & dynamic video galleries by simply adding a YouTube USERNAME, CHANNEL, PLAYLIST, SEARCH KEYWORDS, or a custom list of YouTube URLs.
14 - * Version: 2.4.3
14 + * Version: 2.6.3
15 15 * Author: Team Plugins360
16 16 * Author URI: https://plugins360.com
17 17 * License: GPL-2.0+
18 18 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
@@ -29,9 +29,9 @@
29 29 return;
30 30 }
31 31 // Current version of the plugin
32 32 if ( !defined( 'AYG_VERSION' ) ) {
33 - define( 'AYG_VERSION', '2.4.3' );
33 + define( 'AYG_VERSION', '2.6.3' );
34 34 }
35 35 // Unique identifier of the plugin
36 36 if ( !defined( 'AYG_SLUG' ) ) {
37 37 define( 'AYG_SLUG', 'automatic-youtube-gallery' );
@@ -57,9 +57,9 @@
57 57 if ( !defined( 'WP_FS__PRODUCT_2922_MULTISITE' ) ) {
58 58 define( 'WP_FS__PRODUCT_2922_MULTISITE', true );
59 59 }
60 60 // Include Freemius SDK
61 - require_once dirname( __FILE__ ) . '/freemius/start.php';
61 + require_once dirname( __FILE__ ) . '/vendor/freemius/start.php';
62 62 $ayg_fs = fs_dynamic_init( array(
63 63 'id' => '2922',
64 64 'slug' => 'automatic-youtube-gallery',
65 65 'type' => 'plugin',
@@ -74,9 +74,8 @@
74 74 ),
75 75 'menu' => array(
76 76 'slug' => 'automatic-youtube-gallery',
77 77 'first-path' => 'admin.php?page=automatic-youtube-gallery',
78 - 'support' => false,
79 78 ),
80 79 'is_live' => true,
81 80 ) );
82 81 }
@@ -92,9 +91,15 @@
92 91 /**
93 92 * The code that runs during plugin activation.
94 93 * This action is documented in includes/activator.php
95 94 */
96 - function activate_ayg() {
95 + function activate_ayg( $network_wide ) {
96 + if ( is_multisite() && $network_wide ) {
97 + deactivate_plugins( AYG_FILE_NAME );
98 + wp_die( __( 'Sorry, this plugin cannot be activated network-wide. Please activate it individually on each site where it is needed.', 'automatic-youtube-gallery' ), __( 'Network Activation Not Allowed', 'automatic-youtube-gallery' ), array(
99 + 'back_link' => true,
100 + ) );
101 + }
97 102 require_once AYG_DIR . 'includes/activator.php';
98 103 AYG_Activator::activate();
99 104 }
100 105
@@ -144,8 +149,9 @@
144 149 delete_transient( $key );
145 150 }
146 151 // Delete all the plugin options
147 152 delete_option( 'ayg_general_settings' );
153 + delete_option( 'ayg_strings_settings' );
148 154 delete_option( 'ayg_gallery_settings' );
149 155 delete_option( 'ayg_player_settings' );
150 156 delete_option( 'ayg_livestream_settings' );
151 157 delete_option( 'ayg_seo_settings' );
@@ -154,10 +160,11 @@
154 160 delete_option( 'ayg_channel_ids' );
155 161 delete_option( 'ayg_playlist_ids' );
156 162 delete_option( 'ayg_transient_keys' );
157 163 delete_option( 'ayg_version' );
158 - // Delete our custom database table "{$wpdb->prefix}ayg_videos"
164 + // Delete our custom database tables
159 165 $wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}ayg_videos" );
166 + $wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}ayg_galleries" );
160 167 }
161 168
162 169 ayg_fs()->add_action( 'after_uninstall', 'ayg_fs_uninstall_cleanup' );
163 170 }