Make WordPress Core


Ignore:
Timestamp:
03/30/2005 06:51:55 AM (20 years ago)
Author:
ryan
Message:

Fix Manage->Posts paging when running WP in a subdir. http://mosquito.wordpress.org/view.php?id=1177

File:
1 edited

Legend:

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

    r2481 r2499  
    378378    $page_modregex = "page/?";
    379379    $permalink = 0;
    380     //$index = 'index.php';
    381     $index = $_SERVER['SCRIPT_NAME'];
    382380
    383381    $home_root = parse_url(get_settings('home'));
     
    386384    $qstr = preg_replace('|^'. $home_root . '|', '', $qstr);
    387385    $qstr = preg_replace('|^/+|', '', $qstr);
     386
     387    $index = $_SERVER['SCRIPT_NAME'];
     388    $index = preg_replace('|^'. $home_root . '|', '', $index);
     389    $index = preg_replace('|^/+|', '', $index);
    388390
    389391    // if we already have a QUERY style page string
Note: See TracChangeset for help on using the changeset viewer.