[wp-trac] [WordPress Trac] #17183: previous_comments_link and next_comments_link return wrong url with PATHINFO permalinks
WordPress Trac
noreply at wordpress.org
Sun Aug 18 23:35:51 UTC 2013
#17183: previous_comments_link and next_comments_link return wrong url with
PATHINFO permalinks
--------------------------+------------------------------
Reporter: FireMotion | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version: 1.5
Severity: normal | Resolution:
Keywords: needs-patch |
--------------------------+------------------------------
Changes (by c3mdigital):
* version: 3.1.1 => 1.5
Comment:
This is caused by `get_page_link()`
{{{
if ( 'page' == get_option( 'show_on_front' ) && $post->ID ==
get_option( 'page_on_front' ) )
$link = home_url('/');
}}}
Patch adds a check for `got_mod_rewrite()` and if false prepends the
permalink with index.php.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17183#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list