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.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 1.10.0 All 48 releases
← All changes | includes/editor/beaver/toc/toc.php +8 -1 2.6.02.7.0 View file →
@@ -93,9 +93,16 @@
93 93 $output .= '</div>';
94 94
95 95 echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
96 96
97 - $this->render_builder_script($uid, $max_level, !empty($settings['output_schema']));
97 + // The TOC schema is built client-side, so it bypasses both Schema_Graph
98 + // and the block filter and kept publishing an ItemList with Schema
99 + // switched off (#688).
100 + $schema = !empty($settings['output_schema'])
101 + && (!class_exists('ThinkRank\\Frontend\\Schema_Graph')
102 + || \ThinkRank\Frontend\Schema_Graph::output_allowed());
103 +
104 + $this->render_builder_script($uid, $max_level, $schema);
98 105 }
99 106
100 107 /**
101 108 * The dependency-free script that fills the list in.