mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Hacks file option and include.
git-svn-id: https://develop.svn.wordpress.org/trunk@614 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+10
-11
@@ -1,15 +1,4 @@
|
||||
<?php
|
||||
// This is the name of the include directory. No "/" allowed.
|
||||
$b2inc = 'wp-includes';
|
||||
|
||||
require ($abspath . 'wp-config-extra.php');
|
||||
require ($abspath . $b2inc . '/wp-db.php');
|
||||
require ($abspath . $b2inc . '/functions.php');
|
||||
require ($abspath . $b2inc . '/template-functions.php');
|
||||
require ($abspath . $b2inc . '/class-xmlrpc.php');
|
||||
require ($abspath . $b2inc . '/class-xmlrpcs.php');
|
||||
require ($abspath . '/wp-links/links.php');
|
||||
|
||||
$HTTP_HOST = getenv('HTTP_HOST'); /* domain name */
|
||||
$REMOTE_ADDR = getenv('REMOTE_ADDR'); /* visitor's IP */
|
||||
$HTTP_USER_AGENT = getenv('HTTP_USER_AGENT'); /* visitor's browser */
|
||||
@@ -29,6 +18,16 @@ $tableoptionvalues = $table_prefix . 'optionvalues';
|
||||
$tableoptiongroups = $table_prefix . 'optiongroups';
|
||||
$tableoptiongroup_options = $table_prefix . 'optiongroup_options';
|
||||
|
||||
// This is the name of the include directory. No "/" allowed.
|
||||
$b2inc = 'wp-includes';
|
||||
|
||||
require ($abspath . 'wp-config-extra.php');
|
||||
require ($abspath . $b2inc . '/wp-db.php');
|
||||
require ($abspath . $b2inc . '/functions.php');
|
||||
require ($abspath . $b2inc . '/template-functions.php');
|
||||
require ($abspath . $b2inc . '/class-xmlrpc.php');
|
||||
require ($abspath . $b2inc . '/class-xmlrpcs.php');
|
||||
require ($abspath . '/wp-links/links.php');
|
||||
|
||||
//setup the old globals from b2config.php
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user