HEX
Server: LiteSpeed
System: Linux server342.web-hosting.com 4.18.0-553.124.4.lve.el8.x86_64 #1 SMP Fri May 15 13:02:13 UTC 2026 x86_64
User: ksonpoau (1099)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //home/ksonpoau/www/wp-content/plugins/extendify/tests/playwright/QuickEdit/agent-handoff/setup.php
<?php
require '/wordpress/wp-load.php';

// Mixed block content for the QE → Agent handoff characterization:
//   - First heading: eligible for both Quick Edit and Ask AI.
//   - Spacer: wp-block-spacer class triggers IGNORED_CLASS_RX in
//     agent-gate.js, so the hover bar must not surface Ask AI.
//   - Post title: wp-block-post-* matches the same IGNORED_CLASS_RX.
//   - Second heading: also eligible — used to drive the selection-lock
//     assertion after the first heading has been picked.
$content = "<!-- wp:heading -->\n"
	. "<h2 class=\"wp-block-heading\">First heading for Ask AI handoff.</h2>\n"
	. "<!-- /wp:heading -->\n\n"
	. "<!-- wp:spacer -->\n"
	. "<div style=\"height:80px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\n"
	. "<!-- /wp:spacer -->\n\n"
	. "<!-- wp:post-title /-->\n\n"
	. "<!-- wp:heading -->\n"
	. "<h2 class=\"wp-block-heading\">Second heading for selection lock.</h2>\n"
	. "<!-- /wp:heading -->\n";

$pageId = wp_insert_post([
	'post_type'    => 'page',
	'post_status'  => 'publish',
	'post_title'   => 'QE Agent Handoff Home',
	'post_content' => $content,
]);

update_option('show_on_front', 'page');
update_option('page_on_front', $pageId);