@@ -8,24 +8,24 @@ |
||
| 8 | 8 | * @package Auto Load Next Post |
| 9 | 9 | * @license GPL-2.0+ |
| 10 | 10 | */ |
| 11 | -if ( ! defined( 'ABSPATH' ) || ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
|
| 11 | +if ( ! defined('ABSPATH') || ! defined('WP_UNINSTALL_PLUGIN')) { |
|
| 12 | 12 | exit(); // Exit if accessed directly. |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | global $wpdb; |
| 16 | 16 | |
| 17 | 17 | // For a single site |
| 18 | -if ( ! is_multisite() ) { |
|
| 19 | - $uninstall = get_option( 'auto_load_next_post_uninstall_data' ); |
|
| 18 | +if ( ! is_multisite()) { |
|
| 19 | + $uninstall = get_option('auto_load_next_post_uninstall_data'); |
|
| 20 | 20 | |
| 21 | - if ( ! empty( $uninstall ) ) { |
|
| 21 | + if ( ! empty($uninstall)) { |
|
| 22 | 22 | // Delete options |
| 23 | 23 | $wpdb->query("DELETE FROM $wpdb->options WHERE option_name LIKE 'auto_load_next_post_%';"); |
| 24 | 24 | } |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | // Delete Site options |
| 28 | -delete_site_option( 'auto_load_next_post_install_date' ); |
|
| 28 | +delete_site_option('auto_load_next_post_install_date'); |
|
| 29 | 29 | |
| 30 | 30 | // Delete Uninstall Data |
| 31 | -delete_option( 'auto_load_next_post_uninstall_data' ); |
|
| 31 | +delete_option('auto_load_next_post_uninstall_data'); |
|
@@ -15,6 +15,6 @@ |
||
| 15 | 15 | } |
| 16 | 16 | ?> |
| 17 | 17 | <div class="notice notice-warning auto-load-next-post-message"> |
| 18 | - <p><?php _e( sprintf( 'The theme you are using has not declared support for <b>%s</b> – please see the F.A.Q. to find out how.', 'Auto Load Next Post' ), 'auto-load-next-post' ); ?></p> |
|
| 19 | - <p><a href="<?php echo esc_url( 'https://autoloadnextpost.com/f-a-q/' ); ?>" class="button-primary"><?php _e( 'Frequently Asked Questions', 'auto-load-next-post' ); ?></a> <a class="skip button-primary" href="<?php echo esc_url( add_query_arg( 'hide_auto_load_next_post_theme_support_check', 'true' ) ); ?>"><?php _e( 'Hide this notice', 'auto-load-next-post' ); ?></a></p> |
|
| 18 | + <p><?php _e(sprintf('The theme you are using has not declared support for <b>%s</b> – please see the F.A.Q. to find out how.', 'Auto Load Next Post'), 'auto-load-next-post'); ?></p> |
|
| 19 | + <p><a href="<?php echo esc_url('https://autoloadnextpost.com/f-a-q/'); ?>" class="button-primary"><?php _e('Frequently Asked Questions', 'auto-load-next-post'); ?></a> <a class="skip button-primary" href="<?php echo esc_url(add_query_arg('hide_auto_load_next_post_theme_support_check', 'true')); ?>"><?php _e('Hide this notice', 'auto-load-next-post'); ?></a></p> |
|
| 20 | 20 | </div> |