Make WordPress Core

Opened 2 years ago

Closed 6 weeks 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)

@alex-ye2 years ago

comment:1 @SergeyBiryukov2 years ago

  • Component changed from General to Template

comment:2 @nacin20 months ago

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

comment:3 @DrewAPicture6 weeks 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.