PluginProbe
Extendify / 3.1.0
Extendify v3.1.0
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / tests / playwright / QuickEdit / edge-contracts / setup.php

setup.php in Extendify 3.1.0, at tests/playwright/QuickEdit/edge-contracts/setup.php

25 lines 947 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 require '/wordpress/wp-load.php';
3
4 // One heading (for the Save 5xx + agent-cannot-toggle pins) and one
5 // core/image block (for the AI host down pin). resolveTarget maps
6 // `wp-block-heading` → `core/heading` cleanly, which keeps the Quick
7 // Edit pill reachable; paragraphs at the same scope would only surface
8 // Ask AI today and wouldn't open BlockTextEditor.
9 $content = "<!-- wp:heading -->\n"
10 . "<h2 class=\"wp-block-heading\">Edge contracts heading.</h2>\n"
11 . "<!-- /wp:heading -->\n\n"
12 . "<!-- wp:image -->\n"
13 . '<figure class="wp-block-image"><img src="https://s.w.org/style/images/about/WordPress-logotype-wmark.png" alt="WordPress mark" /></figure>'
14 . "\n<!-- /wp:image -->\n";
15
16 $pageId = wp_insert_post([
17 'post_type' => 'page',
18 'post_status' => 'publish',
19 'post_title' => 'QE Edge Contracts Home',
20 'post_content' => $content,
21 ]);
22
23 update_option('show_on_front', 'page');
24 update_option('page_on_front', $pageId);
25