You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scenario: Install with simulated root filesystem WP-CLI executable location
228
+
Scenario: Install ensures correct siteurl and home regardless of PHP_SELF
229
229
Given an empty directory
230
230
And WP files
231
231
And wp-config.php
232
232
And a database
233
-
And a problematic-server-vars.php file:
234
-
"""
235
-
<?php
236
-
// Simulate WP-CLI being executed from root filesystem (e.g., /wp)
237
-
// This is the problematic scenario that the fix addresses
238
-
$_SERVER['PHP_SELF'] = '/wp';
239
-
$_SERVER['SCRIPT_NAME'] = '/wp';
240
-
$_SERVER['SCRIPT_FILENAME'] = '/wp';
241
-
"""
242
233
243
-
When I run `wp core install --url=https://example.com --title=Test --admin_user=wpcli --admin_email=wpcli@example.org --admin_password=password --skip-email --require=problematic-server-vars.php`
234
+
When I run `wp core install --url=https://example.com --title=Test --admin_user=wpcli --admin_email=wpcli@example.org --admin_password=password --skip-email`
0 commit comments