| @@ -350,15 +350,19 @@ | ||
| 350 | 350 | } |
| 351 | 351 | |
| 352 | 352 | // A delivery-mode switch that could not move the already-published |
| 353 | 353 | // document leaves /llms.txt on the old path; say so instead of |
| 354 | - // reporting a clean save. | |
| 354 | + // reporting a clean save. A switch that worked but landed on a | |
| 355 | + // server that answers the file without a charset warns under its own | |
| 356 | + // key — reporting that one as a failed switch misdescribes it. | |
| 355 | 357 | $delivery_warning = $this->llms_txt_manager->delivery_switch_warning(); |
| 356 | 358 | |
| 357 | 359 | if ('' !== $delivery_warning) { |
| 360 | + $switch_failed = $this->llms_txt_manager->delivery_switch_failed(); | |
| 361 | + | |
| 358 | 362 | return new WP_REST_Response([ |
| 359 | 363 | 'success' => true, |
| 360 | - 'delivery_switch_failed' => true, | |
| 364 | + ($switch_failed ? 'delivery_switch_failed' : 'delivery_warning') => true, | |
| 361 | 365 | 'data' => [ |
| 362 | 366 | 'settings' => $settings, |
| 363 | 367 | 'validation' => $validation |
| 364 | 368 | ], |
| @@ -806,9 +810,9 @@ | ||
| 806 | 810 | 'description' => 'Website description' |
| 807 | 811 | ], |
| 808 | 812 | 'key_features' => [ |
| 809 | 813 | 'type' => 'string', |
| 810 | - 'description' => 'Key website features' | |
| 814 | + 'description' => 'Key website features, one per line. A comma is part of a feature, not a separator.' | |
| 811 | 815 | ], |
| 812 | 816 | 'target_audience' => [ |
| 813 | 817 | 'type' => 'string', |
| 814 | 818 | 'description' => 'Target audience' |
| @@ -856,9 +860,9 @@ | ||
| 856 | 860 | 'description' => 'Website description to optimize' |
| 857 | 861 | ], |
| 858 | 862 | 'key_features' => [ |
| 859 | 863 | 'type' => 'string', |
| 860 | - 'description' => 'Key features to optimize' | |
| 864 | + 'description' => 'Key features to optimize, one per line. A comma is part of a feature, not a separator.' | |
| 861 | 865 | ], |
| 862 | 866 | 'target_audience' => [ |
| 863 | 867 | 'type' => 'string', |
| 864 | 868 | 'description' => 'Target audience information' |