[wp-meta] [Making WordPress.org] #4072: Plugin support URLs should 301 to enforce a trailing slash

Making WordPress.org noreply at wordpress.org
Tue Feb 5 08:55:08 UTC 2019


#4072: Plugin support URLs should 301 to enforce a trailing slash
-----------------------------------+-----------------------
 Reporter:  jonoaldersonwp         |       Owner:  (none)
     Type:  defect                 |      Status:  reopened
 Priority:  lowest                 |   Milestone:
Component:  Support Forums         |  Resolution:
 Keywords:  seo reporter-feedback  |
-----------------------------------+-----------------------

Comment (by dd32):

 Huh, weird. `is_404()` is true for paginated requests..

 Ahhh super fun. A request to `/support/plugin/*` triggers this query in
 WP_Query.. and as there's only one page of posts on the site.. :)
 > SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID FROM wp_posts  WHERE 1=1  AND
 wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR ... )
 ORDER BY wp_posts.post_date DESC LIMIT 0, 10

 Looks like the Support forum custom views need some logic added to set
 `is_404 = false` and prevent the default query from running (since it's
 built elsewhere somehow)

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/4072#comment:5>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list