Changeset 4009

Show
Ignore:
Timestamp:
07/10/06 16:34:43 (3 years ago)
Author:
ryan
Message:

Use wp_die() in wp_nonce_ays(). fixes #2929

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/functions.php

    r4006 r4009  
    10951095 
    10961096    $title = __('WordPress Confirmation'); 
    1097     require_once(ABSPATH . '/wp-admin/admin-header.php'); 
    10981097    // Remove extra layer of slashes. 
    10991098    $_POST   = stripslashes_deep($_POST  ); 
     
    11131112    } 
    11141113    $html .= "</body>\n</html>"; 
    1115     echo $html; 
    1116     include_once(ABSPATH . '/wp-admin/admin-footer.php'); 
    1117 
    1118  
    1119 function wp_die($message) { 
     1114    wp_die($html, $title); 
     1115
     1116 
     1117function wp_die($message, $title = '') { 
    11201118    header('Content-Type: text/html; charset=utf-8'); 
    11211119 
     1120    if ( empty($title) ) 
     1121        $title = __('WordPress &rsaquo; Error'); 
    11221122?> 
    11231123<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    11241124<html xmlns="http://www.w3.org/1999/xhtml"> 
    11251125<head> 
    1126     <title>WordPress &rsaquo; <?php _e('Error'); ?></title> 
     1126    <title><?php echo $title ?></title> 
    11271127    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    11281128    <style media="screen" type="text/css">