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/cursor-rule/setup.php
<?php
require '/wordpress/wp-load.php';

// Cursor-rule seed: a tagged paragraph with an inline link
// (crosshair on text, pointer on the anchor), a search block (form
// control branch), and a sibling page so the "edit mode off" assertion
// has a real URL to land on with the same shape.
$homeContent = "<!-- wp:paragraph -->\n"
	. "<p>Cursor rule paragraph with an <a href=\"/about/\">inline link</a> inside.</p>\n"
	. "<!-- /wp:paragraph -->\n\n"
	. "<!-- wp:search {\"label\":\"Search\",\"buttonText\":\"Go\"} /-->\n";

$pageId = wp_insert_post([
	'post_type'    => 'page',
	'post_status'  => 'publish',
	'post_title'   => 'QE Cursor Rule Home',
	'post_content' => $homeContent,
]);

wp_insert_post([
	'post_type'    => 'page',
	'post_status'  => 'publish',
	'post_title'   => 'About',
	'post_content' => "<!-- wp:heading --><h2 class=\"wp-block-heading\">About page reached.</h2><!-- /wp:heading -->\n",
]);

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