← All changes
|
admin/section/class-convertkit-admin-section-base.php
+0
-10
3.3.2
→
2.8.6
View file →
| @@ -88,13 +88,8 @@ | ||
| 88 | 88 | if ( empty( $this->tab_text ) ) { |
| 89 | 89 | $this->tab_text = $this->title; |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | - // Output the Intercom messenger if we're on the Plugin's settings screen. | |
| 93 | - if ( $this->on_settings_screen( $this->name ) ) { | |
| 94 | - add_action( 'admin_footer', array( $this, 'output_intercom' ) ); | |
| 95 | - } | |
| 96 | - | |
| 97 | 92 | // Register the settings section. |
| 98 | 93 | $this->register_section(); |
| 99 | 94 | |
| 100 | 95 | } |
| @@ -107,13 +102,8 @@ | ||
| 107 | 102 | * @param string $tab Current settings tab (general|tools|restrict-content|broadcasts). |
| 108 | 103 | * @return bool |
| 109 | 104 | */ |
| 110 | 105 | public function on_settings_screen( $tab ) { |
| 111 | - | |
| 112 | - // Bail if this is an AJAX or Cron request. | |
| 113 | - if ( wp_doing_ajax() || wp_doing_cron() ) { | |
| 114 | - return false; | |
| 115 | - } | |
| 116 | 106 | |
| 117 | 107 | // Bail if we're not on the settings screen. |
| 118 | 108 | if ( ! filter_has_var( INPUT_GET, 'page' ) ) { |
| 119 | 109 | return false; |