| @@ -9,10 +9,10 @@ | ||
| 9 | 9 | * |
| 10 | 10 | * @wordpress-plugin |
| 11 | 11 | * Plugin Name: Automatic YouTube Gallery |
| 12 | 12 | * Plugin URI: https://plugins360.com/automatic-youtube-gallery/ |
| 13 | - * Description: Create responsive, modern & dynamic video galleries by simply adding a YouTube USERNAME, CHANNEL, PLAYLIST, SEARCH TERM, or a custom list of YouTube URLs. | |
| 14 | - * Version: 2.0.0 | |
| 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.3.2 | |
| 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 |
| @@ -31,9 +31,9 @@ | ||
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | // Current version of the plugin |
| 34 | 34 | if ( !defined( 'AYG_VERSION' ) ) { |
| 35 | - define( 'AYG_VERSION', '2.0.0' ); | |
| 35 | + define( 'AYG_VERSION', '2.3.2' ); | |
| 36 | 36 | } |
| 37 | 37 | // Unique identifier of the plugin |
| 38 | 38 | if ( !defined( 'AYG_SLUG' ) ) { |
| 39 | 39 | define( 'AYG_SLUG', 'automatic-youtube-gallery' ); |
| @@ -154,8 +154,9 @@ | ||
| 154 | 154 | * @since 1.0.0 |
| 155 | 155 | */ |
| 156 | 156 | function ayg_fs_uninstall_cleanup() |
| 157 | 157 | { |
| 158 | + global $wpdb ; | |
| 158 | 159 | // Delete all the plugin transients |
| 159 | 160 | $transient_keys = get_option( 'ayg_transient_keys', array() ); |
| 160 | 161 | foreach ( $transient_keys as $key ) { |
| 161 | 162 | delete_transient( $key ); |
| @@ -164,11 +165,17 @@ | ||
| 164 | 165 | delete_option( 'ayg_general_settings' ); |
| 165 | 166 | delete_option( 'ayg_gallery_settings' ); |
| 166 | 167 | delete_option( 'ayg_player_settings' ); |
| 167 | 168 | delete_option( 'ayg_livestream_settings' ); |
| 169 | + delete_option( 'ayg_seo_settings' ); | |
| 168 | 170 | delete_option( 'ayg_privacy_settings' ); |
| 171 | + delete_option( 'ayg_gallery_page_ids' ); | |
| 172 | + delete_option( 'ayg_channel_ids' ); | |
| 173 | + delete_option( 'ayg_playlist_ids' ); | |
| 169 | 174 | delete_option( 'ayg_transient_keys' ); |
| 170 | 175 | delete_option( 'ayg_version' ); |
| 176 | + // Delete our custom database table "{$wpdb->prefix}ayg_videos" | |
| 177 | + $wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}ayg_videos" ); | |
| 171 | 178 | } |
| 172 | 179 | |
| 173 | 180 | ayg_fs()->add_action( 'after_uninstall', 'ayg_fs_uninstall_cleanup' ); |
| 174 | 181 | } |