Make WordPress Core

Changeset 1190


Ignore:
Timestamp:
04/27/2004 11:17:16 PM (20 years ago)
Author:
saxmatt
Message:

Cleaning up some includes.

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2rdf.php

    r748 r1190  
    11<?php
    2 $curpath = dirname(__FILE__).'/';
    3 require_once ($curpath.'wp-config.php');
    4 require_once ($curpath.WPINC.'/template-functions.php');
     2require_once ('./wp-config.php');
    53if (!empty($_SERVER["QUERY_STRING"])) {
    64    $location = get_bloginfo('rdf_url').'?'.$_SERVER["QUERY_STRING"];
  • trunk/b2rss.php

    r748 r1190  
    11<?php
    2 $curpath = dirname(__FILE__).'/';
    3 require_once ($curpath.'wp-config.php');
    4 require_once ($curpath.WPINC.'/template-functions.php');
     2require_once ('./wp-config.php');
    53if (!empty($_SERVER["QUERY_STRING"])) {
    64    $location = get_bloginfo('rss_url').'?'.$_SERVER["QUERY_STRING"];
  • trunk/b2rss2.php

    r748 r1190  
    11<?php
    2 $curpath = dirname(__FILE__).'/';
    3 require_once ($curpath.'wp-config.php');
    4 require_once ($curpath.WPINC.'/template-functions.php');
     2require_once ('./wp-config.php');
    53if (!empty($_SERVER["QUERY_STRING"])) {
    64    $location = get_bloginfo('rss2_url').'?'.$_SERVER["QUERY_STRING"];
  • trunk/wp-admin/import-greymatter.php

    r1108 r1190  
    11<?php
    2 
    3 // 1. save as gm-2-b2.php
    4 // 2. upload on your server in the directory where your b2 files are
    5 // 3. load in the browser from there
    62
    73require_once('../wp-config.php');
    8 require_once(ABSPATH.WPINC.'/functions.php');
    94require('upgrade-functions.php');
    105
  • trunk/wp-admin/link-parse-opml.php

    r1107 r1190  
    11<?php
    22require_once('../wp-config.php');
    3 require_once(ABSPATH.WPINC.'/functions.php');
    43
    54// columns we wish to find are:  link_url, link_name, link_target, link_description
  • trunk/wp-includes/functions.php

    r1186 r1190  
    527527
    528528function weblog_ping($server = '', $path = '') {
     529include_once (ABSPATH . WPINC . '/class-xmlrpc.php');
     530include_once (ABSPATH . WPINC . '/class-xmlrpcs.php');
     531
    529532  $f = new xmlrpcmsg('weblogUpdates.ping',
    530533                array(new xmlrpcval(get_settings('blogname'), 'string'),
     
    700703
    701704function pingback($content, $post_ID) {
     705include_once (ABSPATH . WPINC . '/class-xmlrpc.php');
     706include_once (ABSPATH . WPINC . '/class-xmlrpcs.php');
    702707    // original code by Mort (http://mort.mine.nu:8080)
    703708    global $wp_version;
  • trunk/wp-settings.php

    r1184 r1190  
    2525$tableoptiongroup_options = $table_prefix . 'optiongroup_options';
    2626$tablepostmeta            = $table_prefix . 'postmeta';
     27
    2728define('WPINC', 'wp-includes');
     29
    2830require_once (ABSPATH . WPINC . '/wp-db.php');
    2931
     
    3537$wpdb->show_errors();
    3638
    37 // This is the name of the include directory. No "/" allowed.
    38 
    39 require_once (ABSPATH . WPINC . '/functions.php');
    40 require_once (ABSPATH . 'wp-config-extra.php');
    41 require_once (ABSPATH . WPINC . '/template-functions.php');
    42 require_once (ABSPATH . WPINC . '/class-xmlrpc.php');
    43 require_once (ABSPATH . WPINC . '/class-xmlrpcs.php');
    44 require_once (ABSPATH . WPINC . '/links.php');
    45 require_once (ABSPATH . WPINC . '/kses.php');
     39require (ABSPATH . WPINC . '/functions.php');
     40require (ABSPATH . 'wp-config-extra.php');
     41require (ABSPATH . WPINC . '/template-functions.php');
     42require (ABSPATH . WPINC . '/links.php');
     43require (ABSPATH . WPINC . '/kses.php');
    4644require_once (ABSPATH . WPINC . '/wp-l10n.php');
    4745
    48 //setup the old globals from b2config.php
    49 //
    50 // We should eventually migrate to either calling
    51 // get_settings() wherever these are needed OR
    52 // accessing a single global $all_settings var
    5346if (!strstr($_SERVER['REQUEST_URI'], 'install.php') && !strstr($_SERVER['REQUEST_URI'], 'wp-admin/import')) {
    5447
     
    6255} //end !$_wp_installing
    6356
    64 require_once (ABSPATH . WPINC . '/vars.php');
     57require (ABSPATH . WPINC . '/vars.php');
    6558
    6659
Note: See TracChangeset for help on using the changeset viewer.