PluginProbe
Topic SEO Content Optimization Tool / 1.0.40
Topic SEO Content Optimization Tool v1.0.40
1.0.43 1.0.42 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.20 1.0.21 1.0.22 1.0.23 1.0.24 1.0.25 1.0.3 1.0.31 1.0.32 All 40 releases
← All changes | index.php +1 -11 trunk1.0.40 View file →
@@ -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 {