WordPress.org

Make WordPress Core

Changeset 4202 for trunk/wp-settings.php


Ignore:
Timestamp:
09/21/2006 08:46:39 PM (14 years ago)
Author:
ryan
Message:

Turn hard-coded paths to defines. Pull gettext includes int wp-settings. Props mdawaffe. fixes #3157

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r4174 r4202  
    8282
    8383define('WPINC', 'wp-includes');
     84if ( !defined('LANGDIR') )
     85    define('LANGDIR', WPINC . '/languages');   // no leading slash, no trailing slash
     86if ( !defined('PLUGINDIR') )
     87    define('PLUGINDIR', 'wp-content/plugins'); // no leading slash, no trailing slash
    8488if ( file_exists(ABSPATH . 'wp-content/db.php') )
    8589    require (ABSPATH . 'wp-content/db.php');
     
    120124require (ABSPATH . WPINC . '/plugin.php');
    121125require (ABSPATH . WPINC . '/default-filters.php');
     126if ( defined('WPLANG') && '' != constant('WPLANG') ) {
     127    include_once(ABSPATH . WPINC . '/streams.php');
     128    include_once(ABSPATH . WPINC . '/gettext.php');
     129}
    122130require_once (ABSPATH . WPINC . '/l10n.php');
    123131
Note: See TracChangeset for help on using the changeset viewer.