[wp-trac] [WordPress Trac] #31100: Comment reply link and cancel comment reply link broken in 4.1

WordPress Trac noreply at wordpress.org
Mon Jan 26 17:55:13 UTC 2015


#31100: Comment reply link and cancel comment reply link broken in 4.1
---------------------------------------------+-----------------------------
 Reporter:  ericabiz                         |       Owner:
     Type:  defect (bug)                     |      Status:  new
 Priority:  normal                           |   Milestone:  Awaiting
Component:  Comments                         |  Review
 Severity:  normal                           |     Version:  4.1
 Keywords:  reporter-feedback needs-testing  |  Resolution:
                                             |     Focuses:
---------------------------------------------+-----------------------------

Comment (by suitupalex):

 Hi Sergey. I'm one of the engineers at Help.com and I'm taking a peek at
 this.

 I've got a hard coded, temporary fix in place that simply prepends
 `'/blog'` when building the link in `get_comment_reply_link()`.

 When I log out `$_SERVER['REQUEST_URI']` I see something along the lines
 of `'/2015/01/15/blog-title-here/'`.

 Replying to [comment:2 SergeyBiryukov]:
 > I've set up an install with similar `home` and `siteurl` values, but
 could not reproduce the issue.
 >
 > As noted above,
 [https://developer.wordpress.org/reference/functions/get_cancel_comment_reply_link/
 get_cancel_comment_reply_link()] uses
 [https://developer.wordpress.org/reference/functions/remove_query_arg/
 remove_query_arg()], which ultimately depends on
 `$_SERVER['REQUEST_URI']`.
 >
 > Could you see what is the value of `$_SERVER['REQUEST_URI']` on that
 page?

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


More information about the wp-trac mailing list