PluginProbe
Hostinger Tools / trunk
Hostinger Tools vtrunk
3.0.78 3.0.77 3.0.76 3.0.75 3.0.74 3.0.73 3.0.72 3.0.71 3.0.70 3.0.69 3.0.68 3.0.67 3.0.66 1.8.1 1.8.2 1.8.3 1.9.1 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 All 109 releases
← All changes | includes/LlmsTxtGenerator/LlmsTxtGenerator.php +1 -3 3.0.71 → trunk View file →
@@ -10,9 +10,8 @@
10 10
11 11 class LlmsTxtGenerator {
12 12
13 13 public const HOSTINGER_LLMSTXT_SIGNATURE = '[comment]: # (Generated by Hostinger Tools Plugin)';
14 - protected const UTF8_BOM = "\xEF\xBB\xBF";
15 14 public const HOSTINGER_LLMSTXT_SUPPORTED_POST_TYPES = array(
16 15 'post' => 'Posts',
17 16 'page' => 'Pages',
18 17 'product' => 'Products',
@@ -86,10 +85,9 @@
86 85 }
87 86 }
88 87
89 88 public function get_content(): string {
90 - $content = self::UTF8_BOM;
91 - $content .= $this->parser->inject_title();
89 + $content = $this->parser->inject_title();
92 90 $content .= $this->parser->inject_site_description();
93 91 $content .= $this->parser->inject_items( $this->parser->get_by_post_type( 'post' ), 'Posts' );
94 92 $content .= $this->parser->inject_items( $this->parser->get_by_post_type( 'page' ), 'Pages' );
95 93 $content .= $this->maybe_inject_woocommerce_products();