| @@ -49,37 +49,13 @@ | ||
| 49 | 49 | echo '<div class="wrap"><div id="wpupg-admin-manage">Loading...</div></div>'; |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | - * Check compatibility with other plugins. | |
| 54 | - * | |
| 55 | - * @since 3.0.0 | |
| 56 | - */ | |
| 57 | - public static function do_not_load_here() { | |
| 58 | - $screen = get_current_screen(); | |
| 59 | - if ( 'toplevel_page_et_bloom_options' === $screen->id | |
| 60 | - || 'et_theme_builder' === substr( $screen->id, -16 ) | |
| 61 | - || 'bulletproof-security' === substr( $screen->id, 0, 20 ) | |
| 62 | - || 'hustle' === $screen->parent_base | |
| 63 | - || 'admin_page_newsletter' === substr( $screen->id, 0, 21 ) | |
| 64 | - || 'bookly-menu' === $screen->parent_base | |
| 65 | - || 'WishListMember' === $screen->parent_base ) { | |
| 66 | - return true; | |
| 67 | - } | |
| 68 | - | |
| 69 | - return false; | |
| 70 | - } | |
| 71 | - | |
| 72 | - /** | |
| 73 | 53 | * Add modal template to edit screen. |
| 74 | 54 | * |
| 75 | 55 | * @since 3.0.0 |
| 76 | 56 | */ |
| 77 | 57 | public static function add_modal_content() { |
| 78 | - if ( self::do_not_load_here() ) { | |
| 79 | - return; | |
| 80 | - } | |
| 81 | - | |
| 82 | 58 | echo '<div id="wpupg-admin-modal"></div>'; |
| 83 | 59 | echo '<div id="wpupg-admin-modal-tinymce-placeholder" style="display: none">'; |
| 84 | 60 | wp_editor( '', 'wpupg-admin-modal-tinymce' ); |
| 85 | 61 | echo '</div>'; |
| @@ -90,12 +66,8 @@ | ||
| 90 | 66 | * |
| 91 | 67 | * @since 3.0.0 |
| 92 | 68 | */ |
| 93 | 69 | public static function enqueue() { |
| 94 | - if ( self::do_not_load_here() ) { | |
| 95 | - return; | |
| 96 | - } | |
| 97 | - | |
| 98 | 70 | // Enqueue public assets as well for preview. |
| 99 | 71 | WPUPG_Assets::enqueue(); |
| 100 | 72 | WPUPG_Assets::load(); |
| 101 | 73 | |