| @@ -27,13 +27,10 @@ | ||
| 27 | 27 | * @since 1.6.4 |
| 28 | 28 | */ |
| 29 | 29 | public function insert_missing_options() { |
| 30 | 30 | if ( AYG_VERSION !== get_option( 'ayg_version' ) ) { |
| 31 | - $defaults = ayg_get_default_settings(); | |
| 31 | + $defaults = ayg_get_default_settings(); | |
| 32 | 32 | |
| 33 | - // Update the plugin version | |
| 34 | - update_option( 'ayg_version', AYG_VERSION ); | |
| 35 | - | |
| 36 | 33 | // Insert the livestream settings |
| 37 | 34 | if ( false == get_option( 'ayg_livestream_settings' ) ) { |
| 38 | 35 | add_option( 'ayg_livestream_settings', $defaults['ayg_livestream_settings'] ); |
| 39 | 36 | } |
| @@ -41,8 +38,19 @@ | ||
| 41 | 38 | // Insert the privacy settings |
| 42 | 39 | if ( false == get_option( 'ayg_privacy_settings' ) ) { |
| 43 | 40 | add_option( 'ayg_privacy_settings', $defaults['ayg_privacy_settings'] ); |
| 44 | 41 | } |
| 42 | + | |
| 43 | + // Create a custom database table "{$wpdb->prefix}ayg_videos" | |
| 44 | + if ( version_compare( AYG_VERSION, '2.1.0', '<=' ) ) { | |
| 45 | + ayg_db_create_videos_table(); | |
| 46 | + } | |
| 47 | + | |
| 48 | + // Delete the plugin cache | |
| 49 | + ayg_delete_cache(); | |
| 50 | + | |
| 51 | + // Update the plugin version | |
| 52 | + update_option( 'ayg_version', AYG_VERSION ); | |
| 45 | 53 | } |
| 46 | 54 | } |
| 47 | 55 | |
| 48 | 56 | /** |
| @@ -54,9 +62,9 @@ | ||
| 54 | 62 | wp_enqueue_style( 'wp-color-picker' ); |
| 55 | 63 | |
| 56 | 64 | wp_enqueue_style( |
| 57 | 65 | AYG_SLUG . '-admin', |
| 58 | - AYG_URL . 'admin/assets/css/admin.css', | |
| 66 | + AYG_URL . 'admin/assets/css/admin.min.css', | |
| 59 | 67 | array(), |
| 60 | 68 | AYG_VERSION, |
| 61 | 69 | 'all' |
| 62 | 70 | ); |
| @@ -72,9 +80,9 @@ | ||
| 72 | 80 | wp_enqueue_script( 'wp-color-picker' ); |
| 73 | 81 | |
| 74 | 82 | wp_enqueue_script( |
| 75 | 83 | AYG_SLUG . '-admin', |
| 76 | - AYG_URL . 'admin/assets/js/admin.js', | |
| 84 | + AYG_URL . 'admin/assets/js/admin.min.js', | |
| 77 | 85 | array( 'jquery' ), |
| 78 | 86 | AYG_VERSION, |
| 79 | 87 | false |
| 80 | 88 | ); |