WordPress.org

Make WordPress Core

Opened 22 months ago

Last modified 17 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:

Description

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

Suggestions:
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 22 months ago.

Download all attachments as: .zip

Change History (3)

@alex-ye22 months ago

comment:1 @SergeyBiryukov22 months ago

  • Component changed from General to Template

comment:2 @nacin17 months ago

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