Changeset 3985
- Timestamp:
- 07/05/2006 10:00:03 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r3981 r3985 7 7 if ( 'page' == $_POST['post_type'] ) { 8 8 if ( !current_user_can('edit_pages') ) 9 die(__('You are not allowed to create pages on this blog.'));9 wp_die(__('You are not allowed to create pages on this blog.')); 10 10 } else { 11 11 if ( !current_user_can('edit_posts') ) 12 die(__('You are not allowed to create posts or drafts on this blog.'));12 wp_die(__('You are not allowed to create posts or drafts on this blog.')); 13 13 } 14 14 … … 33 33 if ( 'page' == $_POST['post_type'] ) { 34 34 if ( !current_user_can('edit_others_pages') ) 35 die(__('You cannot create pages as this user.'));35 wp_die(__('You cannot create pages as this user.')); 36 36 } else { 37 37 if ( !current_user_can('edit_others_posts') ) 38 die(__('You cannot post as this user.'));38 wp_die(__('You cannot post as this user.')); 39 39 40 40 } … … 152 152 if ( 'page' == $_POST['post_type'] ) { 153 153 if ( !current_user_can('edit_page', $post_ID) ) 154 die(__('You are not allowed to edit this page.'));154 wp_die(__('You are not allowed to edit this page.')); 155 155 } else { 156 156 if ( !current_user_can('edit_post', $post_ID) ) 157 die(__('You are not allowed to edit this post.'));157 wp_die(__('You are not allowed to edit this post.')); 158 158 } 159 159 … … 177 177 if ( 'page' == $_POST['post_type'] ) { 178 178 if ( !current_user_can('edit_others_pages') ) 179 die(__('You cannot edit pages as this user.'));179 wp_die(__('You cannot edit pages as this user.')); 180 180 } else { 181 181 if ( !current_user_can('edit_others_posts') ) 182 die(__('You cannot edit posts as this user.'));182 wp_die(__('You cannot edit posts as this user.')); 183 183 184 184 } … … 252 252 253 253 if (!current_user_can('edit_post', $comment_post_ID)) 254 die(__('You are not allowed to edit comments on this post, so you cannot edit this comment.'));254 wp_die(__('You are not allowed to edit comments on this post, so you cannot edit this comment.')); 255 255 256 256 $_POST['comment_author'] = $_POST['newcomment_author']; … … 531 531 function edit_link($link_id = '') { 532 532 if (!current_user_can('manage_links')) 533 die(__("Cheatin' uh ?"));533 wp_die(__("Cheatin' uh ?")); 534 534 535 535 $_POST['link_url'] = wp_specialchars($_POST['link_url']); … … 1522 1522 switch ($code) { 1523 1523 case 1 : 1524 die(__('Sorry, can’t edit files with ".." in the name. If you are trying to edit a file in your WordPress home directory, you can just type the name of the file in.'));1524 wp_die(__('Sorry, can’t edit files with ".." in the name. If you are trying to edit a file in your WordPress home directory, you can just type the name of the file in.')); 1525 1525 1526 1526 case 2 : 1527 die(__('Sorry, can’t call files with their real path.'));1527 wp_die(__('Sorry, can’t call files with their real path.')); 1528 1528 1529 1529 case 3 : 1530 die(__('Sorry, that file cannot be edited.'));1530 wp_die(__('Sorry, that file cannot be edited.')); 1531 1531 } 1532 1532 } … … 1845 1845 $new_file = $uploads['path'] . "/$filename"; 1846 1846 if ( false === @ move_uploaded_file($file['tmp_name'], $new_file) ) 1847 die(printf(__('The uploaded file could not be moved to %s.'), $file['path']));1847 wp_die(printf(__('The uploaded file could not be moved to %s.'), $file['path'])); 1848 1848 1849 1849 // Set correct file permissions -
trunk/wp-admin/admin.php
r3979 r3985 46 46 } else { 47 47 if ( validate_file($plugin_page) ) { 48 die(__('Invalid plugin page'));48 wp_die(__('Invalid plugin page')); 49 49 } 50 50 51 51 if (! file_exists(ABSPATH . "wp-content/plugins/$plugin_page")) 52 die(sprintf(__('Cannot load %s.'), htmlentities($plugin_page)));52 wp_die(sprintf(__('Cannot load %s.'), htmlentities($plugin_page))); 53 53 54 54 if (! isset($_GET['noheader'])) … … 66 66 67 67 if ( validate_file($importer) ) { 68 die(__('Invalid importer.'));68 wp_die(__('Invalid importer.')); 69 69 } 70 70 71 71 if (! file_exists(ABSPATH . "wp-admin/import/$importer.php")) 72 die(__('Cannot load importer.'));72 wp_die(__('Cannot load importer.')); 73 73 74 74 include(ABSPATH . "wp-admin/import/$importer.php"); -
trunk/wp-admin/categories.php
r3946 r3985 32 32 // Don't delete the default cats. 33 33 if ( $cat_ID == get_option('default_category') ) 34 die(sprintf(__("Can't delete the <strong>%s</strong> category: this is the default one"), $cat_name));34 wp_die(sprintf(__("Can't delete the <strong>%s</strong> category: this is the default one"), $cat_name)); 35 35 36 36 if ( $cat_ID == get_option('default_link_category') ) 37 die(sprintf(__("Can't delete the <strong>%s</strong> category: this is the default one for bookmarks"), $cat_name));37 wp_die(sprintf(__("Can't delete the <strong>%s</strong> category: this is the default one for bookmarks"), $cat_name)); 38 38 39 39 wp_delete_category($cat_ID); -
trunk/wp-admin/comment.php
r3956 r3985 20 20 21 21 if ( ! $comment = get_comment($comment) ) 22 die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'javascript:history.go(-1)'));22 wp_die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'javascript:history.go(-1)')); 23 23 24 24 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) 25 die( __('You are not allowed to edit comments on this post.') );25 wp_die( __('You are not allowed to edit comments on this post.') ); 26 26 27 27 $comment = get_comment_to_edit($comment); … … 43 43 44 44 if ( ! $comment = get_comment($comment) ) 45 die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));45 wp_die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php')); 46 46 47 47 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) 48 die( 'confirmdeletecomment' == $action ? __('You are not allowed to delete comments on this post.') : __('You are not allowed to edit comments on this post, so you cannot approve this comment.') );48 wp_die( 'confirmdeletecomment' == $action ? __('You are not allowed to delete comments on this post.') : __('You are not allowed to edit comments on this post, so you cannot approve this comment.') ); 49 49 50 50 echo "<div class='wrap'>\n"; … … 91 91 92 92 $postdata = get_post($p) or 93 die(sprintf(__('Oops, no post with this ID. <a href="%s">Go back</a>!'), 'edit.php'));93 wp_die(sprintf(__('Oops, no post with this ID. <a href="%s">Go back</a>!'), 'edit.php')); 94 94 95 95 if ( ! $comment = get_comment($comment) ) 96 die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit-comments.php'));96 wp_die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit-comments.php')); 97 97 98 98 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) 99 die( __('You are not allowed to edit comments on this post.') );99 wp_die( __('You are not allowed to edit comments on this post.') ); 100 100 101 101 if ( 'spam' == $_REQUEST['delete_type'] ) … … 124 124 125 125 if ( ! $comment = get_comment($comment) ) 126 die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));126 wp_die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php')); 127 127 128 128 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) 129 die( __('You are not allowed to edit comments on this post, so you cannot disapprove this comment.') );129 wp_die( __('You are not allowed to edit comments on this post, so you cannot disapprove this comment.') ); 130 130 131 131 wp_set_comment_status($comment->comment_ID, "hold"); … … 151 151 152 152 if ( ! $comment = get_comment($comment) ) 153 die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));153 wp_die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php')); 154 154 155 155 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) 156 die( __('You are not allowed to edit comments on this post, so you cannot approve this comment.') );156 wp_die( __('You are not allowed to edit comments on this post, so you cannot approve this comment.') ); 157 157 158 158 wp_set_comment_status($comment->comment_ID, "approve"); -
trunk/wp-admin/import/blogger.php
r3928 r3985 242 242 preg_match_all('#posts\.g\?blogID=(\d+)">([^<]+)</a>#U', $response['body'], $blogsary); 243 243 if ( ! count( $blogsary[1] < 1 ) ) 244 die(__('No blogs found for this user.'));244 wp_die(__('No blogs found for this user.')); 245 245 $this->import['blogs'] = array(); 246 246 $template = '<MainPage><br /><br /><br /><p>'.__('Are you looking for %title%? It is temporarily out of service. Please try again in a few minutes. Meanwhile, discover <a href="http://wordpress.org/">a better blogging tool</a>.').'</p><BloggerArchives><a class="archive" href="<$BlogArchiveURL$>"><$BlogArchiveName$></a><br /></BloggerArchives></MainPage><ArchivePage><Blogger><wordpresspost><$BlogItemDateTime$>|W|P|<$BlogItemAuthorNickname$>|W|P|<$BlogItemBody$>|W|P|<$BlogItemNumber$>|W|P|<$BlogItemTitle$>|W|P|<$BlogItemAuthorEmail$><BlogItemCommentsEnabled><BlogItemComments><wordpresscomment><$BlogCommentDateTime$>|W|P|<$BlogCommentAuthor$>|W|P|<$BlogCommentBody$></BlogItemComments></BlogItemCommentsEnabled></Blogger></ArchivePage>'; … … 307 307 $response = $this->get_blogger("http://www.blogger.com/blog-publishing.g?blogID={$_GET['blog']}&publishMode=0", $headers); 308 308 if ( $response['code'] >= 400 ) 309 die('<h2>'.__('Failed attempt to change publish mode from FTP to BlogSpot.').'</h2><pre>' . addslashes(print_r($headers, 1)) . addslashes(print_r($response, 1)) . '</pre>');309 wp_die('<h2>'.__('Failed attempt to change publish mode from FTP to BlogSpot.').'</h2><pre>' . addslashes(print_r($headers, 1)) . addslashes(print_r($response, 1)) . '</pre>'); 310 310 $this->import['blogs'][$_GET['blog']]['url'] = 'http://' . $optary['modify']['subdomain'] . '.blogspot.com/'; 311 311 sleep(2); … … 322 322 $response = $this->post_blogger($posturl, $headers, $paramary); 323 323 if ( $response['code'] >= 400 || strstr($response['body'], 'There are errors on this form') ) 324 die('<p>'.__('Error on form submission. Retry or reset the importer.').'</p>' . addslashes(print_r($response, 1)));324 wp_die('<p>'.__('Error on form submission. Retry or reset the importer.').'</p>' . addslashes(print_r($response, 1))); 325 325 } 326 326 $output .= "<del><p>$blog_opt</p></del>\n"; … … 365 365 $bloghtml = $this->get_blogger($this->import['blogs'][$_GET['blog']]['url']); 366 366 if (! strstr($bloghtml['body'], '<a class="archive"') ) 367 die(__('Your Blogger blog did not take the new template or did not respond.'));367 wp_die(__('Your Blogger blog did not take the new template or did not respond.')); 368 368 preg_match_all('#<a class="archive" href="([^"]*)"#', $bloghtml['body'], $archives); 369 369 foreach ($archives[1] as $archive) { … … 547 547 sleep(2); 548 548 if ( $response['code'] >= 400 ) 549 die('<h1>Error restoring publishMode.</h1><p>Please tell the devs.</p>' . addslashes(print_r($response, 1)) );549 wp_die('<h1>Error restoring publishMode.</h1><p>Please tell the devs.</p>' . addslashes(print_r($response, 1)) ); 550 550 } 551 551 } … … 616 616 } 617 617 //echo "Step $step."; 618 // die('<pre>'.print_r($this->import,1).'</pre');618 //wp_die('<pre>'.print_r($this->import,1).'</pre'); 619 619 switch ($step) { 620 620 case 0 : -
trunk/wp-admin/import/greymatter.php
r3661 r3985 88 88 89 89 if (!chdir($archivespath)) 90 die("Wrong path, $archivespath\ndoesn't exist\non the server");90 wp_die("Wrong path, $archivespath\ndoesn't exist\non the server"); 91 91 92 92 if (!chdir($gmpath)) 93 die("Wrong path, $gmpath\ndoesn't exist\non the server");93 wp_die("Wrong path, $gmpath\ndoesn't exist\non the server"); 94 94 95 95 $this->header(); -
trunk/wp-admin/inline-uploading.php
r3983 r3985 6 6 7 7 if (!current_user_can('upload_files')) 8 die(__('You do not have permission to upload files.'));8 wp_die(__('You do not have permission to upload files.')); 9 9 10 10 wp_reset_vars(array('action', 'post', 'all', 'last', 'link', 'sort', 'start', 'imgtitle', 'descr', 'attachment')); … … 23 23 24 24 if ( !current_user_can('edit_post', (int) $attachment) ) 25 die(__('You are not allowed to delete this attachment.').' <a href="'.basename(__FILE__)."?post=$post&all=$all&action=upload\">".__('Go back').'</a>');25 wp_die(__('You are not allowed to delete this attachment.').' <a href="'.basename(__FILE__)."?post=$post&all=$all&action=upload\">".__('Go back').'</a>'); 26 26 27 27 wp_delete_attachment($attachment); … … 39 39 40 40 if ( isset($file['error']) ) 41 die($file['error'] . '<br /><a href="' . basename(__FILE__) . '?action=upload&post=' . $post . '">'.__('Back to Image Uploading').'</a>');41 wp_die($file['error'] . '<br /><a href="' . basename(__FILE__) . '?action=upload&post=' . $post . '">'.__('Back to Image Uploading').'</a>'); 42 42 43 43 $url = $file['url']; … … 277 277 278 278 default: 279 die(__('This script was not meant to be called directly.'));279 wp_die(__('This script was not meant to be called directly.')); 280 280 } 281 281 -
trunk/wp-admin/install.php
r3749 r3985 75 75 <?php 76 76 // Let's check to make sure WP isn't already installed. 77 if ( is_blog_installed() ) die('<h1>'.__('Already Installed').'</h1><p>'.__('You appear to have already installed WordPress. To reinstall please clear your old database tables first.').'</p></body></html>');77 if ( is_blog_installed() ) wp_die('<h1>'.__('Already Installed').'</h1><p>'.__('You appear to have already installed WordPress. To reinstall please clear your old database tables first.').'</p></body></html>'); 78 78 79 79 switch($step) { -
trunk/wp-admin/link-import.php
r3760 r3985 90 90 91 91 if ( isset($file['error']) ) 92 die($file['error']);92 wp_die($file['error']); 93 93 94 94 $url = $file['url']; -
trunk/wp-admin/link-manager.php
r3961 r3985 23 23 24 24 if (!current_user_can('manage_links')) 25 die(__("You do not have sufficient permissions to edit the bookmarks for this blog."));25 wp_die(__("You do not have sufficient permissions to edit the bookmarks for this blog.")); 26 26 27 27 switch ($order_by) { -
trunk/wp-admin/link.php
r3946 r3985 19 19 // check the current user's level first. 20 20 if (!current_user_can('manage_links')) 21 die(__("Cheatin' uh ?"));21 wp_die(__("Cheatin' uh ?")); 22 22 23 23 //for each link id (in $linkcheck[]) change category to selected value … … 43 43 // check the current user's level first. 44 44 if (!current_user_can('manage_links')) 45 die(__("Cheatin' uh ?"));45 wp_die(__("Cheatin' uh ?")); 46 46 47 47 //for each link id (in $linkcheck[]) change category to selected value … … 80 80 81 81 if (!current_user_can('manage_links')) 82 die(__("Cheatin' uh ?"));82 wp_die(__("Cheatin' uh ?")); 83 83 84 84 wp_delete_link($link_id); … … 96 96 include_once ('admin-header.php'); 97 97 if (!current_user_can('manage_links')) 98 die(__('You do not have sufficient permissions to edit the bookmarks for this blog.'));98 wp_die(__('You do not have sufficient permissions to edit the bookmarks for this blog.')); 99 99 100 100 $link_id = (int) $_GET['link_id']; 101 101 102 102 if (!$link = get_link_to_edit($link_id)) 103 die(__('Link not found.'));103 wp_die(__('Link not found.')); 104 104 105 105 include ('edit-link-form.php'); -
trunk/wp-admin/menu.php
r3947 r3985 119 119 120 120 if (! user_can_access_admin_page()) { 121 die( __('You do not have sufficient permissions to access this page.') );121 wp_die( __('You do not have sufficient permissions to access this page.') ); 122 122 } 123 123 -
trunk/wp-admin/moderation.php
r3983 r3985 22 22 23 23 if ( ! current_user_can('moderate_comments') ) 24 die('<p>'.__('Your level is not high enough to moderate comments.').'</p>');24 wp_die('<p>'.__('Your level is not high enough to moderate comments.').'</p>'); 25 25 26 26 $item_ignored = 0; -
trunk/wp-admin/page.php
r3946 r3985 111 111 112 112 if ( !current_user_can('delete_page', $page_id) ) 113 die( __('You are not allowed to delete this page.') );113 wp_die( __('You are not allowed to delete this page.') ); 114 114 115 115 if ( $page->post_type == 'attachment' ) { 116 116 if ( ! wp_delete_attachment($page_id) ) 117 die( __('Error in deleting...') );117 wp_die( __('Error in deleting...') ); 118 118 } else { 119 119 if ( !wp_delete_post($page_id) ) 120 die( __('Error in deleting...') );120 wp_die( __('Error in deleting...') ); 121 121 } 122 122 -
trunk/wp-admin/plugin-editor.php
r3950 r3985 24 24 25 25 if ( !current_user_can('edit_plugins') ) 26 die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>');26 wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>'); 27 27 28 28 $newcontent = stripslashes($_POST['newcontent']); … … 44 44 require_once('admin-header.php'); 45 45 if ( !current_user_can('edit_plugins') ) 46 die('<p>'.__('You do not have sufficient permissions to edit plugins for this blog.').'</p>');46 wp_die('<p>'.__('You do not have sufficient permissions to edit plugins for this blog.').'</p>'); 47 47 48 48 update_recently_edited("wp-content/plugins/$file"); -
trunk/wp-admin/post.php
r3946 r3985 118 118 119 119 if ( !current_user_can('delete_post', $post_id) ) 120 die( __('You are not allowed to delete this post.') );120 wp_die( __('You are not allowed to delete this post.') ); 121 121 122 122 if ( $post->post_type == 'attachment' ) { 123 123 if ( ! wp_delete_attachment($post_id) ) 124 die( __('Error in deleting...') );124 wp_die( __('Error in deleting...') ); 125 125 } else { 126 126 if ( !wp_delete_post($post_id) ) 127 die( __('Error in deleting...') );127 wp_die( __('Error in deleting...') ); 128 128 } 129 129 -
trunk/wp-admin/profile-update.php
r3804 r3985 8 8 9 9 if ( !$_POST ) 10 die( __('No post?') );10 wp_die( __('No post?') ); 11 11 12 12 $errors = edit_user($user_ID); -
trunk/wp-admin/templates.php
r3949 r3985 26 26 27 27 if ( ! current_user_can('edit_files') ) 28 die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>');28 wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>'); 29 29 30 30 $newcontent = stripslashes($_POST['newcontent']); … … 51 51 52 52 if ( ! current_user_can('edit_files') ) 53 die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>');53 wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>'); 54 54 55 55 if ( strstr( $file, 'wp-config.php' ) ) 56 die('<p>'.__('The config file cannot be edited or viewed through the web interface. Sorry!').'</p>');56 wp_die('<p>'.__('The config file cannot be edited or viewed through the web interface. Sorry!').'</p>'); 57 57 58 58 update_recently_edited($file); -
trunk/wp-admin/theme-editor.php
r3949 r3985 17 17 18 18 if ( ! isset($themes[$theme]) ) 19 die(__('The requested theme does not exist.'));19 wp_die(__('The requested theme does not exist.')); 20 20 21 21 $allowed_files = array_merge($themes[$theme]['Stylesheet Files'], $themes[$theme]['Template Files']); … … 37 37 38 38 if ( !current_user_can('edit_themes') ) 39 die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>');39 wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>'); 40 40 41 41 $newcontent = stripslashes($_POST['newcontent']); … … 58 58 require_once('admin-header.php'); 59 59 if ( !current_user_can('edit_themes') ) 60 die('<p>'.__('You do not have sufficient permissions to edit themes for this blog.').'</p>');60 wp_die('<p>'.__('You do not have sufficient permissions to edit themes for this blog.').'</p>'); 61 61 62 62 update_recently_edited($file); -
trunk/wp-admin/update-links.php
r3917 r3985 4 4 5 5 if ( !get_option('use_linksupdate') ) 6 die(__('Feature disabled.'));6 wp_die(__('Feature disabled.')); 7 7 8 8 $link_uris = $wpdb->get_col("SELECT link_url FROM $wpdb->links"); 9 9 10 10 if ( !$link_uris ) 11 die('No links');11 wp_die('No links'); 12 12 13 13 $link_uris = urlencode( join( $link_uris, "\n" ) ); -
trunk/wp-admin/users.php
r3928 r3985 129 129 130 130 if ( !current_user_can('edit_users') ) 131 die(__('You can’t edit users.'));131 wp_die(__('You can’t edit users.')); 132 132 133 133 $userids = $_POST['users']; … … 135 135 foreach($userids as $id) { 136 136 if ( ! current_user_can('edit_user', $id) ) 137 die(__('You can’t edit that user.'));137 wp_die(__('You can’t edit that user.')); 138 138 // The new role of the current user must also have edit_users caps 139 139 if($id == $current_user->id && !$wp_roles->role_objects[$_POST['new_role']]->has_cap('edit_users')) { … … 159 159 160 160 if ( !current_user_can('delete_users') ) 161 die(__('You can’t delete users.'));161 wp_die(__('You can’t delete users.')); 162 162 163 163 $userids = $_POST['users']; … … 167 167 foreach ( (array) $userids as $id) { 168 168 if ( ! current_user_can('delete_user', $id) ) 169 die(__('You can’t delete that user.'));169 wp_die(__('You can’t delete that user.')); 170 170 171 171 if($id == $current_user->id) { … … 253 253 254 254 if ( ! current_user_can('create_users') ) 255 die(__('You can’t create users.'));255 wp_die(__('You can’t create users.')); 256 256 257 257 $user_id = add_user(); -
trunk/wp-includes/comment.php
r3902 r3985 182 182 $dupe .= ") AND comment_content = '$comment_content' LIMIT 1"; 183 183 if ( $wpdb->get_var($dupe) ) 184 die( __('Duplicate comment detected; it looks as though you\'ve already said that!') );184 wp_die( __('Duplicate comment detected; it looks as though you\'ve already said that!') ); 185 185 186 186 // Simple flood-protection … … 190 190 if ( ($time_newcomment - $time_lastcomment) < 15 ) { 191 191 do_action('comment_flood_trigger', $time_lastcomment, $time_newcomment); 192 die( __('Sorry, you can only post a new comment once every 15 seconds. Slow down cowboy.') );192 wp_die( __('Sorry, you can only post a new comment once every 15 seconds. Slow down cowboy.') ); 193 193 } 194 194 } -
trunk/wp-includes/js/tinymce/plugins/spellchecker/classes/TinyPspellShell.class.php
r3879 r3985 72 72 fclose($fh); 73 73 } else 74 die("Error opening tmp file.");74 wp_die("Error opening tmp file."); 75 75 76 76 $data = shell_exec($this->cmd); -
trunk/wp-login.php
r3972 r3985 99 99 100 100 if (!$user_email || $user_email != $_POST['email']) 101 die(sprintf(__('Sorry, that user does not seem to exist in our database. Perhaps you have the wrong username or e-mail address? <a href="%s">Try again</a>.'), 'wp-login.php?action=lostpassword'));101 wp_die(sprintf(__('Sorry, that user does not seem to exist in our database. Perhaps you have the wrong username or e-mail address? <a href="%s">Try again</a>.'), 'wp-login.php?action=lostpassword')); 102 102 103 103 do_action('retreive_password', $user_login); // Misspelled and deprecated. … … 133 133 $key = preg_replace('/a-z0-9/i', '', $_GET['key']); 134 134 if ( empty($key) ) 135 die( __('Sorry, that key does not appear to be valid.') );135 wp_die( __('Sorry, that key does not appear to be valid.') ); 136 136 $user = $wpdb->get_row("SELECT * FROM $wpdb->users WHERE user_activation_key = '$key'"); 137 137 if ( !$user ) 138 die( __('Sorry, that key does not appear to be valid.') );138 wp_die( __('Sorry, that key does not appear to be valid.') ); 139 139 140 140 do_action('password_reset'); -
trunk/wp-mail.php
r3517 r3985 18 18 19 19 $count = $pop3->login(get_settings('mailserver_login'), get_settings('mailserver_pass')); 20 if (0 == $count) die(__('There doesn’t seem to be any new mail.'));20 if (0 == $count) wp_die(__('There doesn’t seem to be any new mail.')); 21 21 22 22 -
trunk/wp-settings.php
r3951 r3985 6 6 7 7 if ( isset($_REQUEST['GLOBALS']) ) 8 die('GLOBALS overwrite attempt detected');8 wp_die('GLOBALS overwrite attempt detected'); 9 9 10 10 // Variables that shouldn't be unset … … 48 48 49 49 if ( !(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' ); 51 51 52 52 if ( !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.' ); 54 54 55 55 function timer_start() { … … 112 112 else 113 113 $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)); 115 115 } 116 116
Note: See TracChangeset
for help on using the changeset viewer.