| @@ -5,9 +5,9 @@ | ||
| 5 | 5 | * Description: Topic helps editors and agencies create content briefs in half the time. |
| 6 | 6 | * Author: Topic |
| 7 | 7 | * License: GPL v2 or later |
| 8 | 8 | * License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 9 | - * Version: 1.0.43 | |
| 9 | + * Version: 1.0.40 | |
| 10 | 10 | */ |
| 11 | 11 | if (!defined('ABSPATH')) { |
| 12 | 12 | exit; |
| 13 | 13 | } |
| @@ -86,9 +86,8 @@ | ||
| 86 | 86 | plugins_url($index_file_path, __FILE__), |
| 87 | 87 | array('wp-plugins', 'wp-edit-post', 'wp-i18n', 'wp-element'), |
| 88 | 88 | null |
| 89 | 89 | ); |
| 90 | - $this->add_runtime_config('topic-gutenberg-sidebar'); | |
| 91 | 90 | wp_enqueue_style('topic-sidebar-global', plugins_url('build/index.css', __FILE__), array(), 'all'); |
| 92 | 91 | } |
| 93 | 92 | |
| 94 | 93 | public function topic_enqueue_assets_classic() |
| @@ -102,19 +101,10 @@ | ||
| 102 | 101 | plugins_url($index_file_path, __FILE__), |
| 103 | 102 | array('wp-plugins'), |
| 104 | 103 | null |
| 105 | 104 | ); |
| 106 | - $this->add_runtime_config('topic-gutenberg-sidebar-classic'); | |
| 107 | 105 | wp_enqueue_style('topic-classic-sidebar', plugins_url('classic-editor/classic.css', __FILE__), array(), 'all'); |
| 108 | 106 | wp_enqueue_style('topic-sidebar-global', plugins_url('build/index.css', __FILE__), array(), 'all'); |
| 109 | - } | |
| 110 | - | |
| 111 | - private function add_runtime_config($handle) | |
| 112 | - { | |
| 113 | - $config = array( | |
| 114 | - 'disableTelemetry' => getenv('TOPIC_DISABLE_TELEMETRY') === '1' | |
| 115 | - ); | |
| 116 | - wp_add_inline_script($handle, 'window.topicPluginConfig = ' . wp_json_encode($config) . ';', 'before'); | |
| 117 | 107 | } |
| 118 | 108 | |
| 119 | 109 | public function useTopicSeo_sidebar_box($data) |
| 120 | 110 | { |