WordPress.org

Make WordPress Core

Ticket #4607: 4607.diff

File 4607.diff, 5.2 KB (added by Nazgul, 11 years ago)
  • wp-admin/admin-header.php

     
    4949<div id="user_info"><p><?php printf(__('Howdy, <strong>%s</strong>.'), $user_identity) ?> [<a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>"><?php _e('Sign Out'); ?></a>, <a href="profile.php"><?php _e('My Profile'); ?></a>] </p></div>
    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?>
  • wp-admin/admin.php

     
    3535        $plugin_page = plugin_basename($plugin_page);
    3636}
    3737
    38 require(ABSPATH . '/wp-admin/menu.php');
     38require(ABSPATH . 'wp-admin/menu.php');
    3939
    4040// Handle plugin admin pages.
    4141if (isset($plugin_page)) {
     
    4444        if ( $page_hook ) {
    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);
    5050        } else {
     
    5858                do_action('load-' . $plugin_page);
    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");
    6464        }
  • wp-admin/import/mt.php

     
    177177
    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>');
    183183                } else {
     
    411411        function import() {
    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);
    417417                $this->get_authors_from_post();
  • wp-admin/includes/upgrade.php

     
    22
    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') ) :
    99function wp_install($blog_title, $user_name, $user_email, $public, $meta='') {
  • wp-admin/upgrade.php

     
    55
    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']))
    1111        $step = (int) $_GET['step'];
  • wp-includes/functions.php

     
    463463        global $wp_version, $wpdb;
    464464        include_once (ABSPATH . WPINC . '/class-IXR.php');
    465465
    466         $log = debug_fopen(ABSPATH . '/enclosures.log', 'a');
     466        $log = debug_fopen(ABSPATH . 'enclosures.log', 'a');
    467467        $post_links = array();
    468468        debug_fwrite($log, 'BEGIN '.date('YmdHis', time())."\n");
    469469
  • wp-includes/template-loader.php

     
    88                do_feed();
    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() ) {
    1414                include($template);
     
    6868                do_feed();
    6969                return;
    7070        } else if ( is_trackback() ) {
    71                 include(ABSPATH . '/wp-trackback.php');
     71                include(ABSPATH . 'wp-trackback.php');
    7272                return;
    7373        }
    7474}
  • wp-settings.php

     
    196196
    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
    203203if ( get_option('active_plugins') ) {