feat: Divi hints point to the read tools; guides divi-structure/attrs/design-system; test: Divi read end-to-end

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01At3V6SjwbMe6eMzVGW3Hs7
This commit is contained in:
2026-09-26 12:41:42 +02:00
co-authored by Claude Opus 5.5
parent b3cd0eee62
commit f433fef8f7
15 changed files with 326 additions and 19 deletions
@@ -19,7 +19,7 @@ use WP_Post;
* the same detection lit/content-get uses) because a Divi/block-built revision's
* post_content is shortcode or block-comment markup, not prose – excerpt is then a
* stripped fragment of that markup rather than a real preview; hints repeats
* PostPresenter::DIVI_HINT once when any item is flagged.
* PostPresenter::diviHint() once when any item is flagged.
*/
final class RevisionsListAbility implements Ability
{
@@ -124,7 +124,7 @@ final class RevisionsListAbility implements Ability
'post_id' => (int) $post->ID,
'items' => $items,
'next_cursor' => $page['next_cursor'],
'hints' => in_array(true, array_column($items, 'divi'), true) ? [PostPresenter::DIVI_HINT] : [],
'hints' => in_array(true, array_column($items, 'divi'), true) ? [PostPresenter::diviHint()] : [],
];
}