Changeset 3226

Show
Ignore:
Timestamp:
11/28/05 23:30:42 (3 years ago)
Author:
ryan
Message:

Don't try to do permalinks for admin pages.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/classes.php

    r3215 r3226  
    14831483                    // If we're processing a 404 request, clear the error var 
    14841484                    // since we found something. 
    1485                     if (isset($_GET['error'])) { 
     1485                    if (isset($_GET['error'])) 
    14861486                        unset($_GET['error']); 
    1487                     } 
    1488  
    1489                     if (isset($error)) { 
     1487 
     1488                    if (isset($error)) 
    14901489                        unset($error); 
    1491                     } 
    14921490 
    14931491                    break; 
     
    14961494 
    14971495            // If req_uri is empty or if it is a request for ourself, unset error. 
    1498             if ( empty($request) || $req_uri == $self ) { 
    1499                 if (isset($_GET['error'])) { 
     1496            if ( empty($request) || $req_uri == $self || strstr($_SERVER['PHP_SELF'], 'wp-admin/') ) { 
     1497                if (isset($_GET['error'])) 
    15001498                    unset($_GET['error']); 
    1501                 } 
    1502  
    1503                 if (isset($error)) { 
     1499 
     1500                if (isset($error)) 
    15041501                    unset($error); 
    1505                 } 
     1502                     
     1503                if ( isset($query_vars) ) 
     1504                    unset($query_vars); 
     1505                     
     1506                $this->did_permalink = false; 
    15061507            } 
    15071508        }