Make WordPress Core

Opened 23 months ago

Last modified 18 months ago

#25424 new enhancement

Micro enhancements for the get_pagenum_link() function

Reported by: alex-ye Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: has-patch
Focuses: template Cc:


The get_pagenum_link() needs an update to replace the dead codes with the proper functions for better performance.

1- Replace the callback for get_bloginfo('url') to home_url()
2- Use the PHP_URL_PATH option when parse the home URL.
3- Parse the request URL with parse_url() instead of hardcode.
4- Clean the code to be more readable.

Attachments (1)

25424.patch (3.2 KB) - added by alex-ye 23 months ago.

Download all attachments as: .zip

Change History (3)

@alex-ye23 months ago

comment:1 @SergeyBiryukov23 months ago

  • Component changed from General to Template

comment:2 @nacin18 months ago

  • Component changed from Template to Posts, Post Types
  • Focuses template added
Note: See TracTickets for help on using tickets.