[wp-trac] [WordPress Trac] #31994: WP should not autodetect pretty permalinks during unit test installation
WordPress Trac
noreply at wordpress.org
Thu Apr 16 18:58:38 UTC 2015
#31994: WP should not autodetect pretty permalinks during unit test installation
------------------------------+-----------------------
Reporter: boonebgorges | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2
Component: Build/Test Tools | Version:
Severity: normal | Keywords: has-patch
Focuses: |
------------------------------+-----------------------
The new-in-4.2 `wp_install_maybe_enable_pretty_permalinks()`, called from
`wp_install()`, works by sending a couple of remote requests to a dummy
URL. The 5-second timeout for each of these checks is negligible during a
normal installation. But adding ten seconds to the process of running
`phpunit` is pretty crippling for dev work - especially since our unit
tests assume that pretty permalinks are disabled by default.
The attached patch is a suggested fix that doesn't require touching
`/src/`. Not sure if it's kosher to slip this in for 4.2.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31994>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list