PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.2.0
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.2.0
4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1 3.5.2 All 199 releases
← All changes | includes/Shortcodes/ReadingTime.php +1 -1 4.9.04.2.0 View file →
@@ -28,9 +28,9 @@
28 28 }
29 29
30 30 public function view_params() {
31 31 $single_doc_content = $this->attributes['the_content'];
32 - $content_without_html_tags = wp_strip_all_tags( $single_doc_content );
32 + $content_without_html_tags = strip_tags( $single_doc_content );
33 33 preg_match_all( '/<[^>]*>|[\p{L}\p{M}]+/u', $content_without_html_tags, $matches );
34 34 $reading_total_words = ! empty( $matches[0] ) ? count( $matches[0] ) : count( [] );
35 35
36 36 //lets assume an adult reads 200 words per minute, based on this information calculate the reading time