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 / canvas-mount / setup.php

setup.php in Extendify 3.1.0, at tests/playwright/QuickEdit/canvas-mount/setup.php

24 lines 821 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 // Two distinct blocks so the cross-session flash repro (click A → cancel →
5 // click B) has two different identities to compare. Heading text + paragraph
6 // text deliberately diverge so a stale-singleton flash would surface heading
7 // A's content inside the paragraph B canvas.
8 $homeContent = "<!-- wp:heading -->\n"
9 . "<h2 class=\"wp-block-heading\">Heading aardvark first session.</h2>\n"
10 . "<!-- /wp:heading -->\n\n"
11 . "<!-- wp:paragraph -->\n"
12 . "<p>Paragraph beluga second session.</p>\n"
13 . "<!-- /wp:paragraph -->\n";
14
15 $pageId = wp_insert_post([
16 'post_type' => 'page',
17 'post_status' => 'publish',
18 'post_title' => 'QE Canvas Mount Home',
19 'post_content' => $homeContent,
20 ]);
21
22 update_option('show_on_front', 'page');
23 update_option('page_on_front', $pageId);
24