[wp-trac] [WordPress Trac] #57746: bad variable name in get_previous_posts_page_link()
WordPress Trac
noreply at wordpress.org
Sat Feb 18 15:07:27 UTC 2023
#57746: bad variable name in get_previous_posts_page_link()
-------------------------------+-------------------------------
Reporter: dalirajab | Owner: SergeyBiryukov
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.2
Component: Posts, Post Types | Version: 6.1.1
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: coding-standards
-------------------------------+-------------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"55364" 55364]:
{{{
#!CommitTicketReference repository="" revision="55364"
Coding Standards: Improve variables names in post and comment page link
functions.
This commit renames a few internal variables for better clarity and
consistency:
* `$nextpage` to `$next_page` in:
* `get_next_posts_page_link()`
* `get_next_posts_link()`
* `get_next_comments_link()`
* `$nextpage` to `$previous_page` in:
* `get_previous_posts_page_link()`
* `$prevpage` to `$previous_page` in:
* `get_previous_comments_link()`
Includes minor code layout fixes for better readability.
Follow-up to [5045], [8502], [8961], [28111].
Props dalirajab, SergeyBiryukov.
Fixes #57746.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57746#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list