• Resolved tucsonsam

    (@tucsonsam)


    After manually upgrading to 3.0, I have the following code at the beginning of my blog:

    template.php’); require (ABSPATH . WPINC . ‘/category.php’); require (ABSPATH . WPINC . ‘/category-template.php’); require (ABSPATH . WPINC . ‘/comment.php’); require (ABSPATH . WPINC . ‘/comment-template.php’); require (ABSPATH . WPINC . ‘/rewrite.php’); require (ABSPATH . WPINC . ‘/feed.php’); require (ABSPATH . WPINC . ‘/bookmark.php’); require (ABSPATH . WPINC . ‘/bookmark-template.php’); require (ABSPATH . WPINC . ‘/kses.php’); require (ABSPATH . WPINC . ‘/cron.php’); require (ABSPATH . WPINC . ‘/version.php’); require (ABSPATH . WPINC . ‘/deprecated.php’); require (ABSPATH . WPINC . ‘/script-loader.php’); require (ABSPATH . WPINC . ‘/taxonomy.php’); require (ABSPATH . WPINC . ‘/update.php’); require (ABSPATH . WPINC . ‘/canonical.php’); require (ABSPATH . WPINC . ‘/shortcodes.php’); require (ABSPATH . WPINC . ‘/media.php’); if ( !defined(‘WP_CONTENT_URL’) ) define( ‘WP_CONTENT_URL’, get_option(‘siteurl’) . ‘/wp-content’); // full url – WP_CONTENT_DIR is defined further up /** * Allows for the plugins directory to be moved from the default location. * * @since 2.6 */ if ( !defined(‘WP_PLUGIN_DIR’) ) define( ‘WP_PLUGIN_DIR’, WP_CONTENT_DIR . ‘/plugins’ ); // full path, no trailing slash if ( !defined(‘WP_PLUGIN_URL’) ) define( ‘WP_PLUGIN_URL’, WP_CONTENT_URL . ‘/plugins’ ); // full url, no trailing slash if ( !defined(‘PLUGINDIR’) ) define( ‘PLUGINDIR’, ‘wp-content/plugins’ ); // Relative to ABSPATH. For back compat. if ( ! defined(‘WP_INSTALLING’) ) { // Used to guarantee unique hash cookies $cookiehash = md5(get_option(‘siteurl’)); /** * Used to guarantee unique hash cookies * @since 1.5 */ define(‘COOKIEHASH’, $cookiehash); } /** * Should be exactly the same as the default value of SECRET_KEY in wp-config-sample.php * @since 2.5 */ $wp_default_secret_key = ‘put your unique phrase here’; /** * It is possible to define this in wp-config.php * @since 2.0.0 */ if ( !defined(‘USER_COOKIE’) ) define(‘USER_COOKIE’, ‘wordpressuser_’ . COOKIEHASH); /** * It is possible to define this in wp-config.php * @since 2.0.0 */ if ( !defined(‘PASS_COOKIE’) ) define(‘PASS_COOKIE’, ‘wordpresspass_’ . COOKIEHASH); /** * It is possible to define this in wp-config.php * @since 2.5 */ if ( !defined(‘AUTH_COOKIE’) ) define(‘AUTH_COOKIE’, ‘wordpress_’ . COOKIEHASH); /** * It is possible to define this in wp-config.php * @since 2.6 */ if ( !defined(‘SECURE_AUTH_COOKIE’) ) define(‘SECURE_AUTH_COOKIE’, ‘wordpress_sec_’ . COOKIEHASH); /** * It is possible to define this in wp-config.php * @since 2.6 */ if ( !defined(‘LOGGED_IN_COOKIE’) ) define(‘LOGGED_IN_COOKIE’, ‘wordpress_logged_in_’ . COOKIEHASH); /** * It is possible to define this in wp-config.php * @since 2.3.0 */ if ( !defined(‘TEST_COOKIE’) ) define(‘TEST_COOKIE’, ‘wordpress_test_cookie’); /** * It is possible to define this in wp-config.php * @since 1.2.0 */ if ( !defined(‘COOKIEPATH’) ) define(‘COOKIEPATH’, preg_replace(‘|https?://[^/]+|i’, ”, get_option(‘home’) . ‘/’ ) ); /** * It is possible to define this in wp-config.php * @since 1.5.0 */ if ( !defined(‘SITECOOKIEPATH’) ) define(‘SITECOOKIEPATH’, preg_replace(‘|https?://[^/]+|i’, ”, get_option(‘siteurl’) . ‘/’ ) ); /** * It is possible to define this in wp-config.php * @since 2.6 */ if ( !defined(‘ADMIN_COOKIE_PATH’) ) define( ‘ADMIN_COOKIE_PATH’, SITECOOKIEPATH . ‘wp-admin’ ); /** * It is possible to define this in wp-config.php * @since 2.6 */ if ( !defined(‘PLUGINS_COOKIE_PATH’) ) define( ‘PLUGINS_COOKIE_PATH’, preg_replace(‘|https?://[^/]+|i’, ”, WP_PLUGIN_URL) ); /** * It is possible to define this in wp-config.php * @since 2.0.0 */ if ( !defined(‘COOKIE_DOMAIN’) ) define(‘COOKIE_DOMAIN’, false); /** * It is possible to define this in wp-config.php * @since 2.6 */ if ( !defined(‘FORCE_SSL_ADMIN’) ) define(‘FORCE_SSL_ADMIN’, false); force_ssl_admin(FORCE_SSL_ADMIN); /** * It is possible to define this in wp-config.php * @since 2.6 */ if ( !defined(‘FORCE_SSL_LOGIN’) ) define(‘FORCE_SSL_LOGIN’, false); force_ssl_login(FORCE_SSL_LOGIN); /** * It is possible to define this in wp-config.php * @since 2.5.0 */ if ( !defined( ‘AUTOSAVE_INTERVAL’ ) ) define( ‘AUTOSAVE_INTERVAL’, 60 ); require (ABSPATH . WPINC . ‘/vars.php’); // Check for hacks file if the option is enabled if (get_option(‘hack_file’)) { if (file_exists(ABSPATH . ‘my-hacks.php’)) require(ABSPATH . ‘my-hacks.php’); } if ( get_option(‘active_plugins’) ) { $current_plugins = get_option(‘active_plugins’); if ( is_array($current_plugins) ) { foreach ($current_plugins as $plugin) { if (” != $plugin && file_exists(WP_PLUGIN_DIR . ‘/’ . $plugin)) include_once(WP_PLUGIN_DIR . ‘/’ . $plugin); } } } require (ABSPATH . WPINC . ‘/pluggable.php’); /* * In most cases the default internal encoding is latin1, which is of no use, * since we want to use the mb_ functions for utf-8 strings */ if (function_exists(‘mb_internal_encoding’)) { if (!@mb_internal_encoding(get_option(‘blog_charset’))) mb_internal_encoding(‘UTF-8’); } if ( defined(‘WP_CACHE’) && function_exists(‘wp_cache_postload’) ) wp_cache_postload(); do_action(‘plugins_loaded’); $default_constants = array( ‘WP_POST_REVISIONS’ => true ); foreach ( $default_constants as $c => $v ) @define( $c, $v ); // will fail if the constant is already defined unset($default_constants, $c, $v); // If already slashed, strip. if ( get_magic_quotes_gpc() ) { $_GET = stripslashes_deep($_GET ); $_POST = stripslashes_deep($_POST ); $_COOKIE = stripslashes_deep($_COOKIE); } // Escape with wpdb. $_GET = add_magic_quotes($_GET ); $_POST = add_magic_quotes($_POST ); $_COOKIE = add_magic_quotes($_COOKIE); $_SERVER = add_magic_quotes($_SERVER); do_action(‘sanitize_comment_cookies’); /** * WordPress Query object * @global object $wp_the_query * @since 2.0.0 */ $wp_the_query =& new WP_Query(); /** * Holds the reference to @see $wp_the_query * Use this global for WordPress queries * @global object $wp_query * @since 1.5.0 */ $wp_query =& $wp_the_query; /** * Holds the WordPress Rewrite object for creating pretty URLs * @global object $wp_rewrite * @since 1.5.0 */ $wp_rewrite =& new WP_Rewrite(); /** * WordPress Object * @global object $wp * @since 2.0.0 */ $wp =& new WP(); do_action(‘setup_theme’); /** * Web Path to the current active template directory * @since 1.5 */ define(‘TEMPLATEPATH’, get_template_directory()); /** * Web Path to the current active template stylesheet directory * @since 2.1 */ define(‘STYLESHEETPATH’, get_stylesheet_directory()); // Load the default text localization domain. load_default_textdomain(); /** * The locale of the blog * @since 1.5.0 */ $locale = get_locale(); $locale_file = WP_LANG_DIR . “/$locale.php”; if ( is_readable($locale_file) ) require_once($locale_file); // Pull in locale data after loading text domain. require_once(ABSPATH . WPINC . ‘/locale.php’); /** * WordPress Locale object for loading locale domain date and various strings. * @global object $wp_locale * @since 2.1.0 */ $wp_locale =& new WP_Locale(); // Load functions for active theme. if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists(STYLESHEETPATH . ‘/functions.php’) ) include(STYLESHEETPATH . ‘/functions.php’); if ( file_exists(TEMPLATEPATH . ‘/functions.php’) ) include(TEMPLATEPATH . ‘/functions.php’); /** * shutdown_action_hook() – Runs just before PHP shuts down execution. * * @access private * @since 1.2 */ function shutdown_action_hook() { do_action(‘shutdown’); wp_cache_close(); } register_shutdown_function(‘shutdown_action_hook’); $wp->init(); // Sets up current user. // Everything is loaded and initialized. do_action(‘init’); ?>

    wp-admin shows only the above code, and noting else.

    tucsonsam

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Upgrade to 3.0 has problems’ is closed to new replies.