Index: custom-header.php
===================================================================
--- custom-header.php	(revision 8653)
+++ custom-header.php	(working copy)
@@ -1,12 +1,45 @@
 <?php
+/**
+ * The custom header image script.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
 
+/**
+ * The custom header image class.
+ *
+ * @since unknown
+ * @package WordPress
+ * @subpackage Administration
+ */
 class Custom_Image_Header {
+
+	/**
+	 * Callback for administration header.
+	 *
+	 * @var callback
+	 * @since unknown
+	 * @access private
+	 */
 	var $admin_header_callback;
 
+	/**
+	 * PHP4 Constructor - Register administration header callback.
+	 *
+	 * @since unknown
+	 * @param callback $admin_header_callback
+	 * @return Custom_Image_Header
+	 */
 	function Custom_Image_Header($admin_header_callback) {
 		$this->admin_header_callback = $admin_header_callback;
 	}
 
+	/**
+	 * Setup the hooks for the Custom Header admin page.
+	 *
+	 * @since unknown
+	 */
 	function init() {
 		$page = add_theme_page(__('Custom Image Header'), __('Custom Image Header'), 'edit_themes', 'custom-header', array(&$this, 'admin_page'));
 
@@ -16,21 +49,43 @@
 		add_action("admin_head-$page", $this->admin_header_callback, 51);
 	}
 
+	/**
+	 * Get the current step.
+	 *
+	 * @since unknown
+	 *
+	 * @return int Current step
+	 */
 	function step() {
-		$step = (int) @$_GET['step'];
+		if ( ! isset( $_GET['step'] ) )
+			return 1;
+
+		$step = (int) $_GET['step'];
 		if ( $step < 1 || 3 < $step )
 			$step = 1;
+
 		return $step;
 	}
 
+	/**
+	 * Setup the enqueue for the JavaScript files.
+	 *
+	 * @since unknown
+	 */
 	function js_includes() {
 		$step = $this->step();
+
 		if ( 1 == $step )
 			wp_enqueue_script('colorpicker');
 		elseif ( 2 == $step )
 			wp_enqueue_script('cropper');
 	}
 
+	/**
+	 * Execute custom header modification.
+	 *
+	 * @since unknown
+	 */
 	function take_action() {
 		if ( isset( $_POST['textcolor'] ) ) {
 			check_admin_referer('custom-header');
@@ -48,6 +103,11 @@
 		}
 	}
 
+	/**
+	 * Execute Javascript depending on step.
+	 *
+	 * @since unknown
+	 */
 	function js() {
 		$step = $this->step();
 		if ( 1 == $step )
@@ -56,6 +116,11 @@
 			$this->js_2();
 	}
 
+	/**
+	 * Display Javascript based on Step 1.
+	 *
+	 * @since unknown
+	 */
 	function js_1() { ?>
 <script type="text/javascript">
 	var cp = new ColorPicker();
@@ -129,6 +194,11 @@
 <?php
 	}
 
+	/**
+	 * Display Javascript based on Step 2.
+	 *
+	 * @since unknown
+	 */
 	function js_2() { ?>
 <script type="text/javascript">
 	function onEndCrop( coords, dimensions ) {
@@ -173,6 +243,11 @@
 <?php
 	}
 
+	/**
+	 * Display first step of custom header image page.
+	 *
+	 * @since unknown
+	 */
 	function step_1() {
 		if ( $_GET['updated'] ) { ?>
 <div id="message" class="updated fade">
@@ -226,6 +301,11 @@
 
 	}
 
+	/**
+	 * Display second step of custom header image page.
+	 *
+	 * @since unknown
+	 */
 	function step_2() {
 		check_admin_referer('custom-header');
 		$overrides = array('test_form' => false);
@@ -298,6 +378,11 @@
 		<?php
 	}
 
+	/**
+	 * Display third step of custom header image page.
+	 *
+	 * @since unknown
+	 */
 	function step_3() {
 		check_admin_referer('custom-header');
 		if ( $_POST['oitar'] > 1 ) {
@@ -339,6 +424,11 @@
 		return $this->finished();
 	}
 
+	/**
+	 * Display last step of custom header image page.
+	 *
+	 * @since unknown
+	 */
 	function finished() {
 		?>
 <div class="wrap">
@@ -350,6 +440,11 @@
 		<?php
 	}
 
+	/**
+	 * Display the page based on the current step.
+	 *
+	 * @since unknown
+	 */
 	function admin_page() {
 		$step = $this->step();
 		if ( 1 == $step )
Index: edit-attachment-rows.php
===================================================================
--- edit-attachment-rows.php	(revision 8653)
+++ edit-attachment-rows.php	(working copy)
@@ -1,4 +1,13 @@
-<?php if ( ! defined('ABSPATH') ) die(); ?>
+<?php
+/**
+ * Edit attachments table for inclusion in administration panels.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+if ( ! defined('ABSPATH') ) die();
+?>
 <table class="widefat">
 	<thead>
 	<tr>
Index: edit-category-form.php
===================================================================
--- edit-category-form.php	(revision 8653)
+++ edit-category-form.php	(working copy)
@@ -1,5 +1,15 @@
 <?php
+/**
+ * Edit category form for inclusion in administration panels.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
 if ( ! empty($cat_ID) ) {
+	/**
+	 * @var string
+	 */
 	$heading = __('Edit Category');
 	$submit_text = __('Edit Category');
 	$form = '<form name="editcat" id="editcat" method="post" action="categories.php" class="validate">';
Index: edit-comments.php
===================================================================
--- edit-comments.php	(revision 8653)
+++ edit-comments.php	(working copy)
@@ -1,4 +1,12 @@
 <?php
+/**
+ * Edit Comments Administration Panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 $title = __('Edit Comments');
Index: edit-form-advanced.php
===================================================================
--- edit-form-advanced.php	(revision 8653)
+++ edit-form-advanced.php	(working copy)
@@ -1,5 +1,16 @@
 <?php
+/**
+ * Post advanced form for inclusion in the administration panels.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
 
+/**
+ * Post ID global
+ * @name $post_ID
+ * @var int
+ */
 if ( ! isset( $post_ID ) )
 	$post_ID = 0;
 
Index: edit-form-comment.php
===================================================================
--- edit-form-comment.php	(revision 8653)
+++ edit-form-comment.php	(working copy)
@@ -1,4 +1,14 @@
 <?php
+/**
+ * Edit comment form for inclusion in another file.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/**
+ * @var string
+ */
 $submitbutton_text = __('Edit Comment');
 $toprow_title = sprintf(__('Editing Comment # %s'), $comment->comment_ID);
 $form_action = 'editedcomment';
Index: edit-link-categories.php
===================================================================
--- edit-link-categories.php	(revision 8653)
+++ edit-link-categories.php	(working copy)
@@ -1,4 +1,12 @@
 <?php
+/**
+ * Edit Link Categories Administration Panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 // Handle bulk deletes
Index: edit-link-category-form.php
===================================================================
--- edit-link-category-form.php	(revision 8653)
+++ edit-link-category-form.php	(working copy)
@@ -1,5 +1,15 @@
 <?php
+/**
+ * Edit link category form for inclusion in administration panels.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
 if ( ! empty($cat_ID) ) {
+	/**
+	 * @var string
+	 */
 	$heading = __('Edit Category');
 	$submit_text = __('Edit Category');
 	$form = '<form name="editcat" id="editcat" method="post" action="link-category.php" class="validate">';
Index: edit-link-form.php
===================================================================
--- edit-link-form.php	(revision 8653)
+++ edit-link-form.php	(working copy)
@@ -1,5 +1,15 @@
 <?php
+/**
+ * Edit links form for inclusion in administration panels.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
 if ( ! empty($link_id) ) {
+	/**
+	 * @var string
+	 */
 	$heading = __('Edit Link');
 	$submit_text = __('Save Changes');
 	$form = '<form name="editlink" id="editlink" method="post" action="link.php">';
Index: edit-page-form.php
===================================================================
--- edit-page-form.php	(revision 8653)
+++ edit-page-form.php	(working copy)
@@ -1,5 +1,16 @@
 <?php
+/**
+ * Edit page form for inclusion in the administration panels.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
 
+/**
+ * Post ID global
+ * @name $post_ID
+ * @var int
+ */
 if ( ! isset( $post_ID ) )
 	$post_ID = 0;
 
Index: edit-pages.php
===================================================================
--- edit-pages.php	(revision 8653)
+++ edit-pages.php	(working copy)
@@ -1,4 +1,12 @@
 <?php
+/**
+ * Edit Pages Administration Panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 // Handle bulk deletes
Index: edit-post-rows.php
===================================================================
--- edit-post-rows.php	(revision 8653)
+++ edit-post-rows.php	(working copy)
@@ -1,4 +1,13 @@
-<?php if ( ! defined('ABSPATH') ) die(); ?>
+<?php
+/**
+ * Edit posts rows table for inclusion in administration panels.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+if ( ! defined('ABSPATH') ) die();
+?>
 <table class="widefat">
 	<thead>
 	<tr>
Index: edit-tag-form.php
===================================================================
--- edit-tag-form.php	(revision 8653)
+++ edit-tag-form.php	(working copy)
@@ -1,5 +1,15 @@
 <?php
+/**
+ * Edit tag form for inclusion in administration panels.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
 if ( ! empty($tag_ID) ) {
+	/**
+	 * @var string
+	 */
 	$heading = __('Edit Tag');
 	$submit_text = __('Edit Tag');
 	$form = '<form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate">';
Index: edit-tags.php
===================================================================
--- edit-tags.php	(revision 8653)
+++ edit-tags.php	(working copy)
@@ -1,4 +1,12 @@
 <?php
+/**
+ * Edit Tags Administration Panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 $title = __('Tags');
Index: edit.php
===================================================================
--- edit.php	(revision 8653)
+++ edit.php	(working copy)
@@ -1,4 +1,12 @@
 <?php
+/**
+ * Edit Posts Administration Panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 // Handle bulk deletes
Index: options-discussion.php
===================================================================
--- options-discussion.php	(revision 8653)
+++ options-discussion.php	(working copy)
@@ -1,4 +1,12 @@
 <?php
+/**
+ * Discussion settings administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 $title = __('Discussion Settings');
Index: options-general.php
===================================================================
--- options-general.php	(revision 8653)
+++ options-general.php	(working copy)
@@ -1,4 +1,12 @@
 <?php
+/**
+ * General settings administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('./admin.php');
 
 $title = __('General Settings');
Index: options-misc.php
===================================================================
--- options-misc.php	(revision 8653)
+++ options-misc.php	(working copy)
@@ -1,4 +1,12 @@
 <?php
+/**
+ * Miscellaneous settings administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 $title = __('Miscellaneous Settings');
Index: options-permalink.php
===================================================================
--- options-permalink.php	(revision 8653)
+++ options-permalink.php	(working copy)
@@ -1,9 +1,23 @@
 <?php
+/**
+ * Permalink settings administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 $title = __('Permalink Settings');
 $parent_file = 'options-general.php';
 
+/**
+ * Display JavaScript on the page.
+ *
+ * @package WordPress
+ * @subpackage Permalink_Settings_Panel
+ */
 function add_js() {
 ?>
 <script type="text/javascript">
Index: options-reading.php
===================================================================
--- options-reading.php	(revision 8653)
+++ options-reading.php	(working copy)
@@ -1,4 +1,12 @@
 <?php
+/**
+ * Reading settings administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 $title = __('Reading Settings');
Index: options-writing.php
===================================================================
--- options-writing.php	(revision 8653)
+++ options-writing.php	(working copy)
@@ -1,4 +1,12 @@
 <?php
+/**
+ * Writing settings administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 $title = __('Writing Settings');
Index: options.php
===================================================================
--- options.php	(revision 8653)
+++ options.php	(working copy)
@@ -1,4 +1,18 @@
 <?php
+/**
+ * Options Management Administration Panel.
+ *
+ * Just allows for displaying of options.
+ *
+ * This isn't referenced or linked to, but will show all of the options and
+ * allow editing. The issue is that serialized data is not supported to be
+ * modified. Options can not be removed.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 $title = __('Settings');
Index: page-new.php
===================================================================
--- page-new.php	(revision 8653)
+++ page-new.php	(working copy)
@@ -1,4 +1,12 @@
 <?php
+/**
+ * New page administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 $title = __('New Page');
 $parent_file = 'post-new.php';
Index: page.php
===================================================================
--- page.php	(revision 8653)
+++ page.php	(working copy)
@@ -1,4 +1,14 @@
 <?php
+/**
+ * Edit page administration panel.
+ *
+ * Manage edit page: post, edit, delete, etc.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 $parent_file = 'edit.php';
@@ -6,6 +16,11 @@
 
 wp_reset_vars(array('action'));
 
+/**
+ * Redirect to previous page.
+ *
+ * @param int $page_ID Page ID.
+ */
 function redirect_page($page_ID) {
 	$referredby = '';
 	if ( !empty($_POST['referredby']) ) {
Index: plugin-editor.php
===================================================================
--- plugin-editor.php	(revision 8653)
+++ plugin-editor.php	(working copy)
@@ -1,4 +1,12 @@
 <?php
+/**
+ * Edit plugin editor administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 $title = __("Edit Plugins");
Index: plugin-install.php
===================================================================
--- plugin-install.php	(revision 8653)
+++ plugin-install.php	(working copy)
@@ -1,4 +1,12 @@
 <?php
+/**
+ * Install plugin administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 if ( ! current_user_can('install_plugins') )
Index: plugins.php
===================================================================
--- plugins.php	(revision 8653)
+++ plugins.php	(working copy)
@@ -1,4 +1,12 @@
 <?php
+/**
+ * Plugins administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 $action = '';
Index: post.php
===================================================================
--- post.php	(revision 8653)
+++ post.php	(working copy)
@@ -1,4 +1,14 @@
 <?php
+/**
+ * Edit post administration panel.
+ *
+ * Manage Post actions: post, edit, delete, etc.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 $parent_file = 'edit.php';
@@ -6,6 +16,11 @@
 
 wp_reset_vars(array('action', 'safe_mode', 'withcomments', 'posts', 'content', 'edited_post_title', 'comment_error', 'profile', 'trackback_url', 'excerpt', 'showcomments', 'commentstart', 'commentend', 'commentorder'));
 
+/**
+ * Redirect to previous page.
+ *
+ * @param int $post_ID Optional. Post ID.
+ */
 function redirect_post($post_ID = '') {
 	global $action;
 
Index: press-this.php
===================================================================
--- press-this.php	(revision 8653)
+++ press-this.php	(working copy)
@@ -1,17 +1,56 @@
 <?php
+/**
+ * Press This Display and Handler.
+ *
+ * @package WordPress
+ * @subpackage Press_This
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 if ( ! current_user_can('publish_posts') ) wp_die( __( 'Cheatin&#8217; uh?' ) );
 
+/**
+ * Replace forward slash with backslash and slash.
+ *
+ * @package WordPress
+ * @subpackage Press_This
+ * @since unknown
+ *
+ * @param string $string
+ * @return string
+ */
 function preg_quote2($string) {
 	return str_replace('/', '\/', preg_quote($string));
 }
+
+/**
+ * Convert characters.
+ *
+ * @package WordPress
+ * @subpackage Press_This
+ * @since unknown
+ *
+ * @param string $text
+ * @return string
+ */
 function aposfix($text) {
 	$translation_table[chr(34)] = '&quot;';
 	$translation_table[chr(38)] = '&';
 	$translation_table[chr(39)] = '&apos;';
 	return preg_replace("/&(?![A-Za-z]{0,4}\w{2,3};|#[0-9]{2,3};)/","&amp;" , strtr($text, $translation_table));
 }
+
+/**
+ * Press It form handler.
+ *
+ * @package WordPress
+ * @subpackage Press_This
+ * @since unknown
+ *
+ * @return int Post ID
+ */
 function press_it() {
 	// define some basic variables
 	$quick['post_status'] = isset($_REQUEST['publish']) ? 'publish' : 'draft';
Index: revision.php
===================================================================
--- revision.php	(revision 8653)
+++ revision.php	(working copy)
@@ -1,5 +1,12 @@
 <?php
+/**
+ * Revisions administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
 
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 wp_reset_vars(array('revision', 'left', 'right', 'action'));
Index: theme-editor.php
===================================================================
--- theme-editor.php	(revision 8653)
+++ theme-editor.php	(working copy)
@@ -1,4 +1,12 @@
 <?php
+/**
+ * Theme editor administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 $title = __("Edit Themes");
Index: themes.php
===================================================================
--- themes.php	(revision 8653)
+++ themes.php	(working copy)
@@ -1,4 +1,12 @@
 <?php
+/**
+ * Themes administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 if ( isset($_GET['action']) ) {
Index: update.php
===================================================================
--- update.php	(revision 8653)
+++ update.php	(working copy)
@@ -1,10 +1,24 @@
 <?php
+/**
+ * Update Plugin / Core administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
 
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 if ( ! current_user_can('update_plugins') )
 	wp_die(__('You do not have sufficient permissions to update plugins for this blog.'));
 
+/**
+ * Plugin upgrade display.
+ *
+ * @since 2.5
+ *
+ * @param string $plugin Plugin
+ */
 function do_plugin_upgrade($plugin) {
 	global $wp_filesystem;
 
@@ -44,6 +58,13 @@
 	echo '</div>';
 }
 
+/**
+ * Display upgrade WordPress for downloading latest or upgrading automatically form.
+ *
+ * @since 2.7
+ *
+ * @return null
+ */
 function core_upgrade_preamble() {
 	$update = get_option('update_core');
 
@@ -57,7 +78,7 @@
 	}
 
 	if ( 'development' == $update->response ) {
-		$message = __('You are using a developmemt version of WordPress.  You can upgrade to the latest nightly build automatically or download the nightly build and install it manually. Which would you like to do?');
+		$message = __('You are using a development version of WordPress.  You can upgrade to the latest nightly build automatically or download the nightly build and install it manually. Which would you like to do?');
 		$submit = __('Download nightly build');
 	} else {
 		$message = 	sprintf(__('You can upgrade to version %s automatically or download the nightly build and install it manually. Which would you like to do?'), $update->current);
@@ -78,6 +99,13 @@
 	echo '</div>';
 }
 
+/**
+ * Upgrade WordPress core display.
+ *
+ * @since 2.7
+ *
+ * @return null
+ */
 function do_core_upgrade() {
 	global $wp_filesystem;
 
Index: upload.php
===================================================================
--- upload.php	(revision 8653)
+++ upload.php	(working copy)
@@ -1,4 +1,12 @@
 <?php
+/**
+ * Media Library administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 if (!current_user_can('upload_files'))
Index: user-edit.php
===================================================================
--- user-edit.php	(revision 8653)
+++ user-edit.php	(working copy)
@@ -1,5 +1,12 @@
 <?php
+/**
+ * Edit user administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
 
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
 
 if ( defined('IS_PROFILE_PAGE') && IS_PROFILE_PAGE )
@@ -7,6 +14,12 @@
 else
 	$is_profile_page = false;
 
+/**
+ * Display JavaScript for profile page.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
 function profile_js ( ) {
 ?>
 <script type="text/javascript">
Index: users.php
===================================================================
--- users.php	(revision 8653)
+++ users.php	(working copy)
@@ -1,5 +1,15 @@
 <?php
+/**
+ * Users administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
 require_once('admin.php');
+
+/** WordPress Registration API */
 require_once( ABSPATH . WPINC . '/registration.php');
 
 if ( !current_user_can('edit_users') )
Index: widgets.php
===================================================================
--- widgets.php	(revision 8653)
+++ widgets.php	(working copy)
@@ -1,6 +1,15 @@
 <?php
+/**
+ * Widgets administration panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
 
+/** WordPress Administration Bootstrap */
 require_once( 'admin.php' );
+
+/** WordPress Administration Widgets API */
 require_once(ABSPATH . 'wp-admin/includes/widgets.php');
 
 if ( ! current_user_can('switch_themes') )
