[wp-trac] [WordPress Trac] #56840: The permalink format is "plain" by default

WordPress Trac noreply at wordpress.org
Tue Oct 18 16:10:06 UTC 2022


#56840: The permalink format is "plain" by default
-------------------------------------------------+-------------------------
 Reporter:  strategio                            |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.1
Component:  Permalinks                           |     Version:  trunk
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit      |     Focuses:
  dev-reviewed                                   |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"54636" 54636]:
 {{{
 #!CommitTicketReference repository="" revision="54636"
 Bootstrap/Load: Correct sending the `X-Pingback` header in
 `WP::send_headers()`.

 The logic for sending the `X-Pingback` header for single posts that allow
 pings was recently moved from `WP::handle_404()`​ to a more appropriate
 place in `WP::send_headers()`.

 To check whether pings are open for a particular post, that logic relies
 on the `$wp_query` global, which is declared in `WP::handle_404()`, but
 not in `WP::send_headers()`

 This commit ensures that `$wp_query` is globalized in `WP::send_headers()`
 too, so that the check works as expected.

 Follow-up to [54250].

 Props strategio, sabernhardt, dlh, davidbaumwald, SergeyBiryukov.
 Fixes #56840.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56840#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list