You appear to be a bot. Output may be restricted
Description
Start WordPress in the current directoryNote: In normal processing, index.php loads wp-blog-header.php, which loads wp-load.php, which loads wp-config.php ( if it can find it ), then wp-blog-header calls wp() then loads the theme template. We can't just run index.php rather than wp-config.php since we don't want WordPress to do normal WordPress stuff. And we can't just run wp-load.php because it might do things we don't want it to do. So we have to perform some of the setup ourselves; particularly for WPMS.
Usage
oik_batch_start_wordpress();
Parameters
Returns
voidSource
File name: oik-batch/oik-wp.phpLines:
1 to 18 of 18
function oik_batch_start_wordpress() { $abspath = oik_batch_locate_wp_config_for_phpunit(); if ( !$abspath ) { $abspath = oik_batch_locate_wp_config(); } if ( !$abspath ) { $abspath = __FILE__; echo "Loading WordPress wp-config.php" . PHP_EOL; $abspath = dirname( dirname( dirname( dirname( $abspath ) ) ) ); $abspath .= "/"; } oik_batch_set_domain( $abspath ); oik_batch_set_path(); global $wpdb, $current_site; require( $abspath . "wp-config.php" ); oik_batch_report_wordpress_version(); }View on GitHub