~ubuntu-branches/debian/sid/wordpress/sid

« back to all changes in this revision

Viewing changes to wp-load.php

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2013-11-13 20:41:09 UTC
  • mfrom: (1.2.30)
  • Revision ID: package-import@ubuntu.com-20131113204109-eab47hggfl05n16g
Tags: 3.7.1+dfsg-1
* New upstream release.
* Enable usage of php5-mysqlnd as an alternative to php5-mysql.
  Closes: #722552
* Improve wp-setup to cope with plugins/themes directories with
  spaces. Thanks to Oskar Liljeblad <oskar@osk.mine.nu> for the patch.
  Closes: #723074
* Refresh patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
        // A config file doesn't exist
39
39
 
40
 
        // Set a path for the link to the installer
41
 
        if ( strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false )
42
 
                $path = 'setup-config.php';
43
 
        else
44
 
                $path = 'wp-admin/setup-config.php';
45
 
 
46
40
        define( 'WPINC', 'wp-includes' );
47
41
        define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
48
42
        require_once( ABSPATH . WPINC . '/load.php' );
51
45
        wp_check_php_mysql_versions();
52
46
        wp_load_translations_early();
53
47
 
 
48
        // Standardize $_SERVER variables across setups.
 
49
        wp_fix_server_vars();
 
50
 
54
51
        require_once( ABSPATH . WPINC . '/functions.php' );
55
52
 
 
53
        $path = wp_guess_url() . '/wp-admin/setup-config.php';
 
54
 
56
55
        // Die with an error message
57
56
        $die  = __( "There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started." ) . '</p>';
58
57
        $die .= '<p>' . __( "Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>." ) . '</p>';