mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Previously, a trailing slash was appended to the link returned from `get_pagenum_link()`. If the permalink structure didn't contain a trailing slash, this link could fail. This change removes trailing slashes and only appends one if the site is set for adding trailing slashes. This adds a new test file for the accompanying tests, `tests/phpunit/tests/link/getPagenumLink.php`, and moves an existing test for `get_pagenum_link()` to the same file. Props davemad-davenet, darkfate, Nazgul, scribu, nacin, obenland, chriscct7, jesin, matthewppelsheimer, audrasjb, petitphp, mukesh27, oglekler, mai21, webtechpooja, tejwanihemant, nicolefurlan, hellofromTonya, costdev. Fixes #2877. git-svn-id: https://develop.svn.wordpress.org/trunk@56939 602fd350-edb4-49c9-b593-d223f7449a82 |
||
|---|---|---|
| .. | ||
| editTermLink.php | ||
| getAdjacentPost.php | ||
| getAdjacentPostLink.php | ||
| getDashboardUrl.php | ||
| getEditPostLink.php | ||
| getEditTermLink.php | ||
| getFeedLink.php | ||
| getNextCommentsLink.php | ||
| getNextPostsLink.php | ||
| getPagenumLink.php | ||
| getPostCommentsFeedLink.php | ||
| getPostPermalink.php | ||
| getPostTypeArchiveLink.php | ||
| getPreviewPostLink.php | ||
| getPreviousCommentsLink.php | ||
| getPreviousPostsLink.php | ||
| getThePostsNavigation.php | ||
| getThePrivacyPolicyLink.php | ||
| nextPosts.php | ||
| selfAdminUrl.php | ||
| themeFile.php | ||
| wpGetCanonicalUrl.php | ||