| 1 |
<?php |
| 2 |
require '/wordpress/wp-load.php'; |
| 3 |
|
| 4 |
// Headings (top-level core/heading blocks) are tagged by TagBlocks |
| 5 |
// with data-extendify-agent-block-id at render time, so they're the |
| 6 |
// cheapest reliable target for selector + selection-lock assertions. |
| 7 |
// Three headings give the spec separate targets for (a) the picked |
| 8 |
// block, (b) the outside-click no-op, and (c) the QE-canvas vs. |
| 9 |
// selector coordination check. |
| 10 |
$content = "<!-- wp:heading -->\n" |
| 11 |
. "<h2 class=\"wp-block-heading\">Selector target heading.</h2>\n" |
| 12 |
. "<!-- /wp:heading -->\n\n" |
| 13 |
. "<!-- wp:heading -->\n" |
| 14 |
. "<h2 class=\"wp-block-heading\">Outside click target heading.</h2>\n" |
| 15 |
. "<!-- /wp:heading -->\n\n" |
| 16 |
. "<!-- wp:heading -->\n" |
| 17 |
. "<h2 class=\"wp-block-heading\">QE canvas heading.</h2>\n" |
| 18 |
. "<!-- /wp:heading -->\n"; |
| 19 |
|
| 20 |
$pageId = wp_insert_post([ |
| 21 |
'post_type' => 'page', |
| 22 |
'post_status' => 'publish', |
| 23 |
'post_title' => 'Agent Selector UX Home', |
| 24 |
'post_content' => $content, |
| 25 |
]); |
| 26 |
|
| 27 |
update_option('show_on_front', 'page'); |
| 28 |
update_option('page_on_front', $pageId); |
| 29 |
|