[wp-trac] [WordPress Trac] #56840: The permalink format is "plain" by default
WordPress Trac
noreply at wordpress.org
Tue Oct 18 03:09:25 UTC 2022
#56840: The permalink format is "plain" by default
--------------------------+---------------------
Reporter: strategio | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.1
Component: Permalinks | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+---------------------
Comment (by dlh):
`wp_install_maybe_enable_pretty_permalinks()`
[https://github.com/WordPress/wordpress-
develop/blob/4ef9c315c5b7625ca87399f5b91bd229c42ef1cc/src/wp-
admin/includes/upgrade.php#L507-L520 looks for the `X-Pingback` header] to
determine whether a post is accessible at a "pretty" URL. In [54250], the
logic for sending the `X-Pingback` header was moved to
`WP::send_headers()`, but that logic relies on `$wp_query`, which isn't
globalized in `send_headers()` (unlike in `WP::handle_404()`, where the
logic used to be). A `global $wp_query` looks like it'd be enough to
address the issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56840#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list