PluginProbe
ThinkRank AI SEO – AI SEO Plugin for WordPress: Schema, XML Sitemaps, Meta Tags, Search Console & Local SEO / 2.7.0
ThinkRank AI SEO – AI SEO Plugin for WordPress: Schema, XML Sitemaps, Meta Tags, Search Console & Local SEO v2.7.0
2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.1 2.1.0 2.0.2 2.0.1 2.0.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 trunk 1.0.0 1.0.1 1.0.2 1.1.0 All 49 releases
← All changes | includes/editor/elementor/class-faq-widget.php +18 -0 1.26.02.7.0 View file →
@@ -150,13 +150,31 @@
150 150 * @param array $items Non-empty FAQ items.
151 151 * @return void
152 152 */
153 153 private function maybe_render_schema(array $settings, array $items): void {
154 +
155 + // The Schema master switch and the matrix's per-content-type switch.
156 + // This widget echoes its own <script> rather than registering with
157 + // Schema_Graph, so gating the graph never reached it and it kept
158 + // publishing with Schema switched off (#688).
159 + if (class_exists('ThinkRank\\Frontend\\Schema_Graph')
160 + && !\ThinkRank\Frontend\Schema_Graph::output_allowed()) {
161 + return;
162 + }
154 163 if ('yes' !== ($settings['output_schema'] ?? 'yes')) {
155 164 return;
156 165 }
157 166
158 167 if (\Elementor\Plugin::$instance->editor->is_edit_mode()) {
168 + return;
169 + }
170 +
171 + // The request's schema graph already merged this widget's questions into
172 + // its single FAQPage; emitting again would duplicate it (#355).
173 + if (
174 + class_exists('ThinkRank\\Frontend\\Schema_Graph')
175 + && \ThinkRank\Frontend\Schema_Graph::instance()->absorbed_content_faq()
176 + ) {
159 177 return;
160 178 }
161 179
162 180 $entities = [];