Make WordPress Core


Ignore:
Timestamp:
08/23/2004 11:28:14 PM (21 years ago)
Author:
rboren
Message:

Fix a path info paging bug. Add using_mod_rewrite().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-links.php

    r1537 r1555  
    350350
    351351     // If it's not a path info permalink structure, trim the index.
    352      if ( ! preg_match('#^/*' . get_settings('blogfilename') . '#', get_settings('permalink_structure'))) {
     352     if (using_mod_rewrite()) {
    353353       $qstr = preg_replace("#/*" . get_settings('blogfilename') . "/*#", '/', $qstr);
     354     } else {
     355       // If using path info style permalinks, make sure the index is in
     356       // the URI.
     357       if (! strstr($qstr, get_settings('blogfilename'))) {
     358         $qstr = '/' . get_settings('blogfilename') . $qstr;
     359       }
    354360     }
    355361
Note: See TracChangeset for help on using the changeset viewer.