[wp-trac] [WordPress Trac] #25424: Micro enhancements for the get_pagenum_link() function

WordPress Trac noreply at wordpress.org
Fri Sep 27 04:08:22 UTC 2013


#25424: Micro enhancements for the get_pagenum_link() function
-------------------------+-----------------------------
 Reporter:  alex-ye      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:  has-patch
-------------------------+-----------------------------
 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.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25424>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list