WP-Admin File Level Inline Documentation from santosj. see #7496

git-svn-id: https://develop.svn.wordpress.org/trunk@8618 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-08-11 20:26:31 +00:00
parent 5a8b37fdc9
commit a70e1a34e5
16 changed files with 245 additions and 16 deletions

View File

@@ -1,4 +1,12 @@
<?php
/**
* Comment Management Panel
*
* @package WordPress
* @subpackage Administration
*/
/** Load WordPress Bootstrap */
require_once('admin.php');
$parent_file = 'edit-comments.php';
@@ -9,7 +17,12 @@ wp_reset_vars( array('action') );
if ( isset( $_POST['deletecomment'] ) )
$action = 'deletecomment';
function comment_footer_die( $msg ) { // $msg is assumed to contain HTML and be sanitized
/**
* Display error message at bottom of comments.
*
* @param string $msg Error Message. Assumed to contain HTML and be sanitized.
*/
function comment_footer_die( $msg ) { //
echo "<div class='wrap'><p>$msg</p></div>";
include('admin-footer.php');
die;
@@ -225,4 +238,4 @@ default:
include('admin-footer.php');
?>
?>