[wp-trac] [WordPress Trac] #45331: 'rest_url_prefix' filter fails to impact flush_rewrite_rules() on plugin activation
WordPress Trac
noreply at wordpress.org
Sun Oct 25 04:25:29 UTC 2020
#45331: 'rest_url_prefix' filter fails to impact flush_rewrite_rules() on plugin
activation
-------------------------------------+-------------------------------------
Reporter: KestutisIT | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version: 4.9.8
Severity: major | Resolution:
Keywords: needs-patch ux-feedback | Focuses: administration, rest-
reporter-feedback | api
-------------------------------------+-------------------------------------
Changes (by TimothyBlynJacobs):
* keywords: needs-patch ux-feedback => needs-patch ux-feedback reporter-
feedback
Comment:
AFAICT this happens because the rewrite rules have already been registered
when a plugin is activated for the first time. This type of timing issue
is common in WordPress. I would recommend running `flush_rewrite_rules`
the next page load after your plugin is installed.
If that is incorrect, please provide a minimal, standalone plugin that
demonstrates the issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45331#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list