[wp-trac] [WordPress Trac] #3514: IIS fix for get_pagenum_link

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 1 20:13:08 GMT 2007

#3514: IIS fix for get_pagenum_link
 Reporter:  snakefoot  |       Owner:  anonymous                            
     Type:  defect     |      Status:  new                                  
 Priority:  high       |   Milestone:  2.0.6                                
Component:  General    |     Version:  2.0                                  
 Severity:  major      |    Keywords:  get_pagenum_link, iis, posts_nav_link
 The posts_nav_link doesn't work in categories, when trying to browse to
 the second page of a category using "Previous entries", then the link
 points to:


 Instead of pointing to:


 The fix for me was to modify '''get_pagenum_link''' located in
 '''template-functions-links.php''' (Both trunk and branch should get this
 rather easy fix)

 function get_pagenum_link($pagenum = 1) {
         global $wp_rewrite;

         // IIS on Windows fix
         if (!$_SERVER['REQUEST_URI']) $_SERVER['REQUEST_URI'] =

         $qstr = wp_specialchars($_SERVER['REQUEST_URI']);

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

More information about the wp-trac mailing list