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

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 1 21:03:00 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                                  |   Resolution:           
 Keywords:  get_pagenum_link, iis, posts_nav_link  |  
---------------------------------------------------+------------------------
Comment (by snakefoot):

 Just discovered that my IIS didn't react to the IIS test
 ($_SERVER!['REQUEST_URI'] returned "/index.php"). Now changed it according
 to this advice:

 http://www.xoops.org/modules/newbb/viewtopic.php?topic_id=29255

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

         if ( !isset($_SERVER['REQUEST_URI']) ||
 empty($_SERVER['REQUEST_URI']) ||
 $_SERVER['REQUEST_URI']==$_SERVER['PHP_SELF'])
                 $_SERVER['REQUEST_URI'] =
 $_SERVER['SCRIPT_NAME'].$_SERVER['PATH_INFO'];

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

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


More information about the wp-trac mailing list