← All changes
|
includes/abilities/analysis/class-publish-llms-txt.php
+6
-2
1.26.0
→
2.13.0
View file →
| @@ -30,9 +30,9 @@ | ||
| 30 | 30 | */ |
| 31 | 31 | public function __construct() { |
| 32 | 32 | $this->id = 'thinkrank/publish-llms-txt'; |
| 33 | 33 | $this->label = __( 'Publish ThinkRank llms.txt', 'thinkrank' ); |
| 34 | - $this->description = __( 'Generate the llms.txt content and write it to the site root (llms.txt) so it is served publicly. Pass an empty user_input object to publish using the currently saved settings. Unlike generate-llms-txt, this persists the file to disk; afterwards get-llms-txt-status reports file_exists: true.', 'thinkrank' ); | |
| 34 | + $this->description = __( 'Generate the llms.txt content and publish it so it is served publicly at /llms.txt. Pass an empty user_input object to publish using the currently saved settings. Depending on the delivery_mode setting this writes a physical file to the site root or stores the document for WordPress to serve; unlike generate-llms-txt it persists either way, and afterwards get-llms-txt-status reports published: true.', 'thinkrank' ); | |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * {@inheritDoc} |
| @@ -41,9 +41,13 @@ | ||
| 41 | 41 | */ |
| 42 | 42 | public function get_annotations() { |
| 43 | 43 | return [ |
| 44 | 44 | 'readonly' => false, |
| 45 | - 'destructive' => true, | |
| 45 | + // Republishing overwrites a file this ability generates from the | |
| 46 | + // saved settings, so the previous state is reproducible rather than | |
| 47 | + // lost — generate-llms-txt previews it and get-llms-txt-status | |
| 48 | + // reports it (#675). | |
| 49 | + 'destructive' => false, | |
| 46 | 50 | 'idempotent' => true, |
| 47 | 51 | 'priority' => 2.0, |
| 48 | 52 | 'openWorldHint' => false, |
| 49 | 53 | ]; |