[wp-trac] [WordPress Trac] #52753: using_index_permalinks() on null

WordPress Trac noreply at wordpress.org
Sun Apr 18 15:12:00 UTC 2021

#52753: using_index_permalinks() on null
 Reporter:  arena              |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Site Health        |     Version:  5.6
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
Changes (by Clorith):

 * keywords:   => reporter-feedback



 This appears related to the change in asynchronous tests being moved to
 the REST API, and the calls to `rest_url` in the test generator function
 you are calling.

 The `rest_url` function relies on the `$wp_rewrite` global class when
 pretty permalinks are enabled, which isn't available as early as the
 `plugins_loaded` action, but should instead be used with either the `init`
 or `wp` hook.

Ticket URL: <https://core.trac.wordpress.org/ticket/52753#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list