| @@ -59,22 +59,8 @@ | ||
| 59 | 59 | |
| 60 | 60 | // Define shortcode. |
| 61 | 61 | $shortcode = $shortcodes[ $shortcode_name ]; |
| 62 | 62 | |
| 63 | - // Show a message in the modal if no API Key is specified. | |
| 64 | - if ( array_key_exists( 'has_api_key', $shortcode ) && ! $shortcode['has_api_key'] ) { | |
| 65 | - $notice = $shortcode['no_api_key']; | |
| 66 | - require_once CONVERTKIT_PLUGIN_PATH . '/views/backend/tinymce/modal-notice.php'; | |
| 67 | - die(); | |
| 68 | - } | |
| 69 | - | |
| 70 | - // Show a message in the modal if no resources exist. | |
| 71 | - if ( array_key_exists( 'has_resources', $shortcode ) && ! $shortcode['has_resources'] ) { | |
| 72 | - $notice = $shortcode['no_resources']; | |
| 73 | - require_once CONVERTKIT_PLUGIN_PATH . '/views/backend/tinymce/modal-notice.php'; | |
| 74 | - die(); | |
| 75 | - } | |
| 76 | - | |
| 77 | 63 | // Output the modal. |
| 78 | 64 | require_once CONVERTKIT_PLUGIN_PATH . '/views/backend/tinymce/modal.php'; |
| 79 | 65 | die(); |
| 80 | 66 | |