Make WordPress Core

Changeset 3985 for trunk/wp-settings.php


Ignore:
Timestamp:
07/05/2006 10:00:03 PM (19 years ago)
Author:
ryan
Message:

Use wp_die(). Props filosofo. fixes #2914

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r3951 r3985  
    66
    77    if ( isset($_REQUEST['GLOBALS']) )
    8         die('GLOBALS overwrite attempt detected');
     8        wp_die('GLOBALS overwrite attempt detected');
    99
    1010    // Variables that shouldn't be unset
     
    4848
    4949if ( !(phpversion() >= '4.1') )
    50     die( 'Your server is running PHP version ' . phpversion() . ' but WordPress requires at least 4.1' );
     50    wp_die( 'Your server is running PHP version ' . phpversion() . ' but WordPress requires at least 4.1' );
    5151
    5252if ( !extension_loaded('mysql') )
    53     die( 'Your PHP installation appears to be missing the MySQL which is required for WordPress.' );
     53    wp_die( 'Your PHP installation appears to be missing the MySQL which is required for WordPress.' );
    5454
    5555function timer_start() {
     
    112112    else
    113113        $link = 'wp-admin/install.php';
    114     die(sprintf(__("It doesn't look like you've installed WP yet. Try running <a href='%s'>install.php</a>."), $link));
     114    wp_die(sprintf(__("It doesn't look like you've installed WP yet. Try running <a href='%s'>install.php</a>."), $link));
    115115}
    116116
Note: See TracChangeset for help on using the changeset viewer.