Make WordPress Core

Opened 2 years ago

Closed 3 months ago

#25424 closed enhancement (wontfix)

Micro enhancements for the get_pagenum_link() function

Reported by: alex-ye Owned by:
Milestone: 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 2 years ago.

Download all attachments as: .zip

Change History (4)

2 years ago

#1 @SergeyBiryukov
2 years ago

  • Component changed from General to Template

#2 @nacin
22 months ago

  • Component changed from Template to Posts, Post Types
  • Focuses template added

#3 @DrewAPicture
3 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

There has been no additional interest or meaningful activity in two years here. Also, I don't feel like the ticket meets the baseline guidelines justifying a refactor. Closing as wontfix.

Note: See TracTickets for help on using tickets.