WordPress.org

Make WordPress Core

Changeset 5820


Ignore:
Timestamp:
07/27/07 21:28:01 (8 years ago)
Author:
markjaquith
Message:

ABSPATH already has a trailing slash. Props Nazgul. fixes #4607

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r5640 r5820  
    5050 
    5151<?php 
    52 require(ABSPATH . '/wp-admin/menu-header.php'); 
     52require(ABSPATH . 'wp-admin/menu-header.php'); 
    5353 
    5454if ( $parent_file == 'options-general.php' ) { 
    55     require(ABSPATH . '/wp-admin/options-head.php'); 
     55    require(ABSPATH . 'wp-admin/options-head.php'); 
    5656} 
    5757?> 
  • trunk/wp-admin/admin.php

    r5542 r5820  
    3636} 
    3737 
    38 require(ABSPATH . '/wp-admin/menu.php'); 
     38require(ABSPATH . 'wp-admin/menu.php'); 
    3939 
    4040// Handle plugin admin pages. 
     
    4545        do_action('load-' . $page_hook); 
    4646        if (! isset($_GET['noheader'])) 
    47             require_once(ABSPATH . '/wp-admin/admin-header.php'); 
     47            require_once(ABSPATH . 'wp-admin/admin-header.php'); 
    4848 
    4949        do_action($page_hook); 
     
    5959 
    6060        if (! isset($_GET['noheader'])) 
    61             require_once(ABSPATH . '/wp-admin/admin-header.php'); 
     61            require_once(ABSPATH . 'wp-admin/admin-header.php'); 
    6262 
    6363        include(ABSPATH . PLUGINDIR . "/$plugin_page"); 
  • trunk/wp-admin/import/mt.php

    r5700 r5820  
    178178    function select_authors() { 
    179179        if ( $_POST['upload_type'] === 'ftp' ) { 
    180             $file['file'] = ABSPATH . '/wp-content/mt-export.txt'; 
     180            $file['file'] = ABSPATH . 'wp-content/mt-export.txt'; 
    181181            if ( !file_exists($file['file']) ) 
    182182                $file['error'] = __('<code>mt-export.txt</code> does not exist</code>'); 
     
    412412        $this->id = (int) $_GET['id']; 
    413413        if ( $this->id == 0 ) 
    414             $this->file = ABSPATH . '/wp-content/mt-export.txt'; 
     414            $this->file = ABSPATH . 'wp-content/mt-export.txt'; 
    415415        else 
    416416            $this->file = get_attached_file($this->id); 
  • trunk/wp-admin/includes/upgrade.php

    r5815 r5820  
    33if ( file_exists(ABSPATH . 'wp-content/install.php') ) 
    44    require (ABSPATH . 'wp-content/install.php'); 
    5 require_once(ABSPATH . '/wp-admin/includes/admin.php'); 
    6 require_once(ABSPATH . '/wp-admin/includes/schema.php'); 
     5require_once(ABSPATH . 'wp-admin/includes/admin.php'); 
     6require_once(ABSPATH . 'wp-admin/includes/schema.php'); 
    77 
    88if ( !function_exists('wp_install') ) : 
  • trunk/wp-admin/upgrade.php

    r5665 r5820  
    66require('../wp-config.php'); 
    77timer_start(); 
    8 require_once(ABSPATH . '/wp-admin/includes/upgrade.php'); 
     8require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); 
    99 
    1010if (isset($_GET['step'])) 
  • trunk/wp-includes/functions.php

    r5810 r5820  
    486486    include_once (ABSPATH . WPINC . '/class-IXR.php'); 
    487487 
    488     $log = debug_fopen(ABSPATH . '/enclosures.log', 'a'); 
     488    $log = debug_fopen(ABSPATH . 'enclosures.log', 'a'); 
    489489    $post_links = array(); 
    490490    debug_fwrite($log, 'BEGIN '.date('YmdHis', time())."\n"); 
  • trunk/wp-includes/template-loader.php

    r5149 r5820  
    99        return; 
    1010    } else if ( is_trackback() ) { 
    11         include(ABSPATH . '/wp-trackback.php'); 
     11        include(ABSPATH . 'wp-trackback.php'); 
    1212        return; 
    1313    } else if ( is_404() && $template = get_404_template() ) { 
     
    6969        return; 
    7070    } else if ( is_trackback() ) { 
    71         include(ABSPATH . '/wp-trackback.php'); 
     71        include(ABSPATH . 'wp-trackback.php'); 
    7272        return; 
    7373    } 
  • trunk/wp-settings.php

    r5700 r5820  
    197197// Check for hacks file if the option is enabled 
    198198if (get_option('hack_file')) { 
    199     if (file_exists(ABSPATH . '/my-hacks.php')) 
    200         require(ABSPATH . '/my-hacks.php'); 
     199    if (file_exists(ABSPATH . 'my-hacks.php')) 
     200        require(ABSPATH . 'my-hacks.php'); 
    201201} 
    202202 
Note: See TracChangeset for help on using the changeset viewer.