Ticket #4607: 4607.diff
File 4607.diff, 5.2 KB (added by , 18 years ago) |
---|
-
wp-admin/admin-header.php
49 49 <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> 50 50 51 51 <?php 52 require(ABSPATH . ' /wp-admin/menu-header.php');52 require(ABSPATH . 'wp-admin/menu-header.php'); 53 53 54 54 if ( $parent_file == 'options-general.php' ) { 55 require(ABSPATH . ' /wp-admin/options-head.php');55 require(ABSPATH . 'wp-admin/options-head.php'); 56 56 } 57 57 ?> -
wp-admin/admin.php
35 35 $plugin_page = plugin_basename($plugin_page); 36 36 } 37 37 38 require(ABSPATH . ' /wp-admin/menu.php');38 require(ABSPATH . 'wp-admin/menu.php'); 39 39 40 40 // Handle plugin admin pages. 41 41 if (isset($plugin_page)) { … … 44 44 if ( $page_hook ) { 45 45 do_action('load-' . $page_hook); 46 46 if (! isset($_GET['noheader'])) 47 require_once(ABSPATH . ' /wp-admin/admin-header.php');47 require_once(ABSPATH . 'wp-admin/admin-header.php'); 48 48 49 49 do_action($page_hook); 50 50 } else { … … 58 58 do_action('load-' . $plugin_page); 59 59 60 60 if (! isset($_GET['noheader'])) 61 require_once(ABSPATH . ' /wp-admin/admin-header.php');61 require_once(ABSPATH . 'wp-admin/admin-header.php'); 62 62 63 63 include(ABSPATH . PLUGINDIR . "/$plugin_page"); 64 64 } -
wp-admin/import/mt.php
177 177 178 178 function select_authors() { 179 179 if ( $_POST['upload_type'] === 'ftp' ) { 180 $file['file'] = ABSPATH . ' /wp-content/mt-export.txt';180 $file['file'] = ABSPATH . 'wp-content/mt-export.txt'; 181 181 if ( !file_exists($file['file']) ) 182 182 $file['error'] = __('<code>mt-export.txt</code> does not exist</code>'); 183 183 } else { … … 411 411 function import() { 412 412 $this->id = (int) $_GET['id']; 413 413 if ( $this->id == 0 ) 414 $this->file = ABSPATH . ' /wp-content/mt-export.txt';414 $this->file = ABSPATH . 'wp-content/mt-export.txt'; 415 415 else 416 416 $this->file = get_attached_file($this->id); 417 417 $this->get_authors_from_post(); -
wp-admin/includes/upgrade.php
2 2 3 3 if ( file_exists(ABSPATH . 'wp-content/install.php') ) 4 4 require (ABSPATH . 'wp-content/install.php'); 5 require_once(ABSPATH . ' /wp-admin/includes/admin.php');6 require_once(ABSPATH . ' /wp-admin/includes/schema.php');5 require_once(ABSPATH . 'wp-admin/includes/admin.php'); 6 require_once(ABSPATH . 'wp-admin/includes/schema.php'); 7 7 8 8 if ( !function_exists('wp_install') ) : 9 9 function wp_install($blog_title, $user_name, $user_email, $public, $meta='') { -
wp-admin/upgrade.php
5 5 6 6 require('../wp-config.php'); 7 7 timer_start(); 8 require_once(ABSPATH . ' /wp-admin/includes/upgrade.php');8 require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); 9 9 10 10 if (isset($_GET['step'])) 11 11 $step = (int) $_GET['step']; -
wp-includes/functions.php
463 463 global $wp_version, $wpdb; 464 464 include_once (ABSPATH . WPINC . '/class-IXR.php'); 465 465 466 $log = debug_fopen(ABSPATH . ' /enclosures.log', 'a');466 $log = debug_fopen(ABSPATH . 'enclosures.log', 'a'); 467 467 $post_links = array(); 468 468 debug_fwrite($log, 'BEGIN '.date('YmdHis', time())."\n"); 469 469 -
wp-includes/template-loader.php
8 8 do_feed(); 9 9 return; 10 10 } else if ( is_trackback() ) { 11 include(ABSPATH . ' /wp-trackback.php');11 include(ABSPATH . 'wp-trackback.php'); 12 12 return; 13 13 } else if ( is_404() && $template = get_404_template() ) { 14 14 include($template); … … 68 68 do_feed(); 69 69 return; 70 70 } else if ( is_trackback() ) { 71 include(ABSPATH . ' /wp-trackback.php');71 include(ABSPATH . 'wp-trackback.php'); 72 72 return; 73 73 } 74 74 } -
wp-settings.php
196 196 197 197 // Check for hacks file if the option is enabled 198 198 if (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'); 201 201 } 202 202 203 203 if ( get_option('active_plugins') ) {