PluginProbe
Extendify / 3.1.1
Extendify v3.1.1
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 / pill-scroll / setup.php

setup.php in Extendify 3.1.1, at tests/playwright/QuickEdit/pill-scroll/setup.php

26 lines 809 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 // Seed a homepage taller than the viewport so wheel events have somewhere
5 // to scroll. One tagged paragraph near the top brings the pill bar into
6 // reach; ten filler paragraphs push the body height past one screen.
7 $filler = str_repeat(
8 "<!-- wp:paragraph -->\n<p>Filler paragraph for vertical scroll room.</p>\n<!-- /wp:paragraph -->\n\n",
9 10
10 );
11
12 $homeContent = "<!-- wp:paragraph -->\n"
13 . "<p>Tagged paragraph the pill bar attaches to.</p>\n"
14 . "<!-- /wp:paragraph -->\n\n"
15 . $filler;
16
17 $pageId = wp_insert_post([
18 'post_type' => 'page',
19 'post_status' => 'publish',
20 'post_title' => 'QE Pill Scroll Home',
21 'post_content' => $homeContent,
22 ]);
23
24 update_option('show_on_front', 'page');
25 update_option('page_on_front', $pageId);
26