Index: wp-includes/script-loader.php
===================================================================
--- wp-includes/script-loader.php	(revision 8795)
+++ wp-includes/script-loader.php	(working copy)
@@ -241,6 +241,8 @@
 		));
 
 		$scripts->add( 'theme-preview', '/wp-admin/js/theme-preview.js', array( 'thickbox', 'jquery' ), '20080625' );
+		
+		$scripts->add( 'inline-edit', '/wp-admin/js/inline-edit.js', array( 'jquery', 'jquery-form', 'suggest' ), '20080812' );
 
 		$scripts->add( 'plugin-install', '/wp-admin/js/plugin-install.js', array( 'thickbox', 'jquery' ), '20080803' );
 		$scripts->localize( 'plugin-install', 'plugininstallL10n', array(
Index: wp-admin/admin-ajax.php
===================================================================
--- wp-admin/admin-ajax.php	(revision 8795)
+++ wp-admin/admin-ajax.php	(working copy)
@@ -715,6 +715,15 @@
 	$slug = isset($_POST['new_slug'])? $_POST['new_slug'] : '';
 	die(get_sample_permalink_html($post_id, $title, $slug));
 break;
+case 'inline-data':
+	if( !isset( $_POST['posts'] ) ) 
+		break;
+	get_edit_data( explode(',', $_POST['posts']) );
+	die();
+break;
+case 'inline-save':
+	die('1');
+break;
 case 'meta-box-order':
 	check_ajax_referer( 'meta-box-order' );
 	update_user_option( $GLOBALS['current_user']->ID, "meta-box-order_$_POST[page]", $_POST['order'] );
Index: wp-admin/wp-admin.css
===================================================================
--- wp-admin/wp-admin.css	(revision 8795)
+++ wp-admin/wp-admin.css	(working copy)
@@ -2085,3 +2085,126 @@
 .metabox-prefs label input {
 	margin: 0 5px 0 2px;
 }
+
+
+/* Inline Editor */
+
+.edit-column {
+	text-align: center;
+}
+
+.inline {
+	font-size: 10px;
+}
+
+.inline td {
+	padding-right: 4px;
+	padding-left: 7px;
+}
+
+.inline input, .inline select, .inline textarea {
+	font-size: 10px !important;
+	padding: 2px;
+	border: 1px solid #ddd;
+}
+
+.inline td.date {
+	width: 87px;
+}
+
+.inline td.page-title {
+	width: 495px;
+}
+
+.inline td.post-title input.title {
+	width: 250px;
+}
+
+.inline td.post-title input.slug {
+	width: 222px;
+	float: right;
+}
+
+.inline div.title {
+	float: left;
+}
+
+.inline div.title input.title {
+	font-size: 12px !important;
+}
+
+.inline div.title label {
+	float: left;
+	margin-top: 4px;
+}
+
+.inline td.page-title input.slug {
+	width: 123px;
+	float: right;
+}
+
+.inline div.other, .inline div.more {
+	width: 190px;
+	float: left;
+	padding-left: 5px;
+}
+
+.inline div.other label, .inline div.more label {
+	display: block; float: left;
+	width: 54px;
+	margin-top: 4px;
+}
+
+.inline div.other select {
+	width: 133px;
+}
+
+.inline div.more {
+	width: 125px;
+}
+
+.inline div.more input {
+	width: 60px;
+}
+
+.inline td.author select {
+	width: 110px;
+}
+
+.inline ul.categories {
+	list-style: none;
+	padding: 0; margin: 0; 
+	height: 65px;
+	overflow: auto;
+	font-size: 10px;
+}
+
+.inline ul.categories ul.children {
+	list-style: none;
+	padding-left: 15px;
+}
+
+.inline ul.categories li {
+	margin-bottom: 2px;
+}
+
+.inline ul.categories input {
+	vertical-align: middle;
+	padding: 0; border: 0;
+}
+
+.inline td.tags textarea {
+	height: 58px; width: 100%;
+}
+
+.inline td.comments {
+	padding-left: 0;
+}
+
+.inline td.status select {
+	width: 98px;
+}
+
+.inline td.status input {
+	vertical-align: middle;
+}
\ No newline at end of file
Index: wp-admin/includes/template.php
===================================================================
--- wp-admin/includes/template.php	(revision 8795)
+++ wp-admin/includes/template.php	(working copy)
@@ -350,7 +350,7 @@
 		$posts_columns['modified'] = __('Submitted');
 	else
 		$posts_columns['date'] = __('Date');
-	//$posts_columns['author'] = __('Author');
+	$posts_columns['author'] = __('Author');
 	$posts_columns['categories'] = __('Categories');
 	$posts_columns['tags'] = __('Tags');
 	if ( !isset($_GET['post_status']) || !in_array($_GET['post_status'], array('pending', 'draft', 'future')) )
@@ -406,6 +406,202 @@
 	return $posts_columns;
 }
 
+function display_edit_row( $type ) {
+	global $current_user;
+
+	if ( 'post' == $type )
+		$post = get_default_post_to_edit();
+	else
+		$post = get_default_page_to_edit();
+
+	echo '<tr id="inline-edit" style="display: none">';
+	$columns = $type == 'post' ? wp_manage_posts_columns() : wp_manage_pages_columns();
+	foreach($columns as $column_name=>$column_display_name) {
+
+		switch($column_name) {
+
+		case 'cb': ?>
+		  <td></td>
+		  <?php
+		  break;
+
+		case 'modified':
+		case 'date': ?>
+			<td class="date">
+				<?php touch_time(1, 1, 4, 1); ?>
+			</td>
+			<?php
+			break;
+
+		case 'title': ?>
+			<td class="<?php echo $type ?>-title">
+				<div class="title">
+					<input type="text" class="title" value="" /><br />
+					<label><?php _e('Slug'); ?></label><input type="text" value="" class="slug" />
+				</div>
+				<?php if($type == 'page'): ?>
+				<div class="other">
+					<label><?php _e('Parent'); ?></label>
+					<select class="parent">
+						<option value="0"><?php _e('Main Page (no parent)'); ?></option>
+						<?php parent_dropdown(); ?>
+					</select><br />
+					<label><?php _e('Template'); ?></label>
+					<select class="template">
+						<option value='default'><?php _e('Default Template'); ?></option>
+						<?php page_template_dropdown() ?>
+					</select>
+				</div>
+				<div class="more">
+					<label><?php _e('Order'); ?></label><input type="text" class="order" value="<?php echo $post->menu_order ?>" />
+					<label><?php _e('Password'); ?></label><input type="text" class="password" value="<?php echo $post->post_password ?>" />      
+				</div>
+				<?php endif; ?>
+				<div class="clear"></div>
+				<?php
+				$actions = array();
+				$actions['save'] = '<a href="#">' . __('Save') . '</a>';
+				$actions['cancel'] = '<a href="#">' . __('Cancel') . '</a>';
+				$action_count = count($actions);
+				$i = 0;
+				foreach ( $actions as $action => $link ) {
+					++$i;
+					( $i == $action_count ) ? $sep = '' : $sep = ' | ';
+					echo "<span class='$action'>$link$sep</span>";
+				}
+				?>
+			</td>
+			<?php
+			break;
+
+		case 'categories': ?>
+			<td class="categories">
+				<ul class="categories">
+					<?php wp_category_checklist() ?>
+				</ul>
+			</td>
+			<?php
+			break;
+
+		case 'tags': ?>
+			<td class="tags">
+				<textarea class="tags"></textarea>
+			</td>
+			<?php
+			break;
+
+		case 'comments': ?>
+			<td class="comments num">
+				<input title="Allow Comments" type="checkbox" class="comment" value="open" /><br />
+				<input title="Allow Pings" type="checkbox" class="ping" value="open" />
+			</td>
+			<?php
+			break;
+
+		case 'author': ?>
+			<td class="author">
+				<?php
+				$authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM
+				if ( $authors && count( $authors ) > 1 ) {
+					wp_dropdown_users( array('include' => $authors, 'name' => 'author-'.$post->ID, 'class'=> 'author', 'selected' => $post->post_author) ); 
+				} else {
+					echo $current_user->user_nicename.'<input type="hidden" value="'.$post->post_author.'" class="author" />';
+				}
+				?>
+			</td>
+			<?php
+			break;
+
+		case 'status': ?>
+			<td class="status">
+				<select class="status">
+					<?php if ( current_user_can('publish_posts') ) : // Contributors only get "Unpublished" and "Pending Review" ?>
+					<option value='publish'><?php _e('Published') ?></option>
+					<option value='future'><?php _e('Scheduled') ?></option>
+					<?php endif; ?>
+					<option value='pending'><?php _e('Pending Review') ?></option>
+					<option value='draft'><?php _e('Unpublished') ?></option>
+				</select>
+				<?php if($type == 'page'): ?>
+				<br /><label><input class="private" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> /> <?php _e('Private') ?></label></p>
+				<?php endif; ?>
+			</td>
+			<?php
+			break;
+
+		case 'control_view': ?>
+			<td><a href="<?php the_permalink(); ?>" rel="permalink" class="view"><?php _e('View'); ?></a></td>
+			<?php
+			break;
+
+		case 'control_edit': ?>
+			<td><?php if ( current_user_can('edit_post',$post->ID) ) { echo "<a href='post.php?action=edit&amp;post=$id' class='edit'>" . __('Edit') . "</a>"; } ?></td>
+			<?php
+			break;
+
+		case 'control_delete': ?>
+			<td><?php if ( current_user_can('delete_post',$post->ID) ) { echo "<a href='" . wp_nonce_url("post.php?action=delete&amp;post=$id", 'delete-post_' . $post->ID) . "' class='delete'>" . __('Delete') . "</a>"; } ?></td>
+			<?php
+			break;
+
+		default: ?>
+			<td><?php do_action('manage_posts_custom_column', $column_name, $post->ID); ?></td>
+			<?php
+			break;
+		}
+	}
+
+	echo '</tr>';
+}
+
+// outputs XML of the post/page data ready for use in the inline editor
+// accepts array of post IDs
+function get_edit_data($posts) {
+	global $post;
+
+	header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
+	echo "<?xml version='1.0' ?>\n";
+	echo "<posts>\n";
+
+	foreach ($posts as $post_id) {
+		$post_id = (int) $post_id;
+		if ( ! $post_id )
+			continue;
+
+		$post = get_post($post_id);
+
+		if ( ($post->post_type == 'post' && !current_user_can('edit_post', $post_id)) || 
+				($post->post_type == 'page' && !current_user_can('edit_page', $post_id)) || 
+				($post->post_type != 'post' && $post->post_type != 'page'))
+			continue;
+
+		echo "  <post id='$post_id'>\n";
+		echo "    <title>" . wp_specialchars($post->post_title, 1) . "</title>\n";
+		echo "    <slug>$post->post_name</slug>\n";
+		echo "    <author>$post->post_author</author>\n";
+		echo "    <comments>$post->comment_status</comments>\n";
+		echo "    <ping>$post->ping_status</ping>\n";
+		echo "    <status>$post->post_status</status>\n";
+		echo "    <jj>" . mysql2date( 'd', $post->post_date ) . "</jj>\n";
+		echo "    <mm>" . mysql2date( 'm', $post->post_date ) . "</mm>\n";
+		echo "    <aa>" . mysql2date( 'Y', $post->post_date ) . "</aa>\n";
+		echo "    <hh>" . mysql2date( 'H', $post->post_date ) . "</hh>\n";
+		echo "    <mn>" . mysql2date( 'i', $post->post_date ) . "</mn>\n";
+		if ( $post->post_type == 'post' ) {
+			echo '    <tags>' . wp_specialchars(get_tags_to_edit( $post->ID ), 1) . "</tags>\n";
+			echo '    <categories>' . implode( ',', wp_get_post_categories( $post->ID ) ) . "</categories>\n";
+		} elseif ( $post->post_type == 'page' ) {
+			echo "    <parent>$post->post_parent</parent>\n";
+			echo '    <template>' . wp_specialchars(get_post_meta( $post->ID, '_wp_page_template', true ), 1) . "</template>\n";
+			echo "    <password>" . wp_specialchars($post->post_password, 1) . "</password>\n";
+			echo "    <order>$post->menu_order</order>\n";
+		}
+		echo "  </post>\n";
+ 	}
+
+	echo '</posts>';
+}
+
 function post_rows() {
 	global $wp_query, $post, $mode;
 
@@ -483,9 +679,9 @@
 			}
 
 			if ( 'excerpt' == $mode ) { ?>
-		<td><?php echo apply_filters('post_date_column_time', $t_time, $post, $column_name, $mode) ?></td>
+		<td class="date"><?php echo apply_filters('post_date_column_time', $t_time, $post, $column_name, $mode) ?></td>
 		<?php } else { ?>
-		<td><abbr title="<?php echo $t_time ?>"><?php echo apply_filters('post_date_column_time', $h_time, $post, $column_name, $mode) ?></abbr></td>
+		<td class="date"><abbr title="<?php echo $t_time ?>"><?php echo apply_filters('post_date_column_time', $h_time, $post, $column_name, $mode) ?></abbr></td>
 		<?php }
 		break;
 
@@ -500,6 +696,7 @@
 
 			$actions = array();
 			$actions['edit'] = '<a href="post.php?action=edit&amp;post=' . $post->ID . '">' . __('Edit') . '</a>';
+			$actions['inline'] = '<a href="#" class="editinline">' . __('Quick Edit') . '</a>';
 			$actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=delete&amp;post=$post->ID", 'delete-post_' . $post->ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n  'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this post '%s'\n  'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>";
 			$action_count = count($actions);
 			$i = 0;
@@ -515,7 +712,7 @@
 
 		case 'categories':
 		?>
-		<td><?php
+		<td class="categories"><?php
 			$categories = get_the_category();
 			if ( !empty( $categories ) ) {
 				$out = array();
@@ -531,7 +728,7 @@
 
 		case 'tags':
 		?>
-		<td><?php
+		<td class="tags"><?php
 			$tags = get_the_tags();
 			if ( !empty( $tags ) ) {
 				$out = array();
@@ -547,7 +744,7 @@
 
 		case 'comments':
 		?>
-		<td class="num"><div class="post-com-count-wrapper">
+		<td class="comments num"><div class="post-com-count-wrapper">
 		<?php
 			$pending_phrase = sprintf( __('%s pending'), number_format( $pending_comments ) );
 			if ( $pending_comments )
@@ -562,13 +759,13 @@
 
 		case 'author':
 		?>
-		<td><a href="edit.php?author=<?php the_author_ID(); ?>"><?php the_author() ?></a></td>
+		<td class="author"><a href="edit.php?author=<?php the_author_ID(); ?>"><?php the_author() ?></a></td>
 		<?php
 		break;
 
 		case 'status':
 		?>
-		<td>
+		<td class="status">
 		<a href="<?php the_permalink(); ?>" title="<?php echo attribute_escape(sprintf(__('View "%s"'), $title)); ?>" rel="permalink">
 		<?php
 			switch ( $post->post_status ) {
@@ -606,7 +803,7 @@
 
 		case 'control_delete':
 		?>
-		<td><?php if ( current_user_can('delete_post', $post->ID) ) { echo "<a href='" . wp_nonce_url("post.php?action=delete&amp;post=$id", 'delete-post_' . $post->ID) . "' class='delete'>" . __('Delete') . "</a>"; } ?></td>
+		<td><?php if ( current_user_can('delete_post', $post->ID) ) { echo "<a href='" . wp_nonce_url("post.php?action=delete&amp;post=$post_id", 'delete-post_' . $post->ID) . "' class='delete'>" . __('Delete') . "</a>"; } ?></td>
 		<?php
 		break;
 
@@ -654,7 +851,7 @@
 
 	case 'cb':
 		?>
-		<th scope="row" class="check-column"><input type="checkbox" name="delete[]" value="<?php the_ID(); ?>" /></th>
+		<th scope="row" class="check-column"><input type="checkbox" name="post[]" value="<?php the_ID(); ?>" /></th>
 		<?php
 		break;
 	case 'modified':
@@ -681,7 +878,7 @@
 			}
 		}
 		?>
-		<td><abbr title="<?php echo $t_time ?>"><?php echo $h_time ?></abbr></td>
+		<td class="date"><abbr title="<?php echo $t_time ?>"><?php echo $h_time ?></abbr></td>
 		<?php
 		break;
 	case 'title':
@@ -696,6 +893,7 @@
 
 		$actions = array();
 		$actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>';
+		$actions['inline'] = '<a href="#" class="editinline">' . __('Quick Edit') . '</a>';
 		$actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("page.php?action=delete&amp;post=$page->ID", 'delete-page_' . $page->ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $page->post_status) ? __("You are about to delete this draft '%s'\n  'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this page '%s'\n  'Cancel' to stop, 'OK' to delete."), $page->post_title )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>";
 		$action_count = count($actions);
 		$i = 0;
@@ -711,7 +909,7 @@
 
 	case 'comments':
 		?>
-		<td class="num"><div class="post-com-count-wrapper">
+		<td class="comments num"><div class="post-com-count-wrapper">
 		<?php
 		$left = get_pending_comments_num( $page->ID );
 		$pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
@@ -727,13 +925,13 @@
 
 	case 'author':
 		?>
-		<td><a href="edit-pages.php?author=<?php the_author_ID(); ?>"><?php the_author() ?></a></td>
+		<td class="author"><a href="edit-pages.php?author=<?php the_author_ID(); ?>"><?php the_author() ?></a></td>
 		<?php
 		break;
 
 	case 'status':
 		?>
-		<td>
+		<td class="status">
 		<a href="<?php the_permalink(); ?>" title="<?php echo attribute_escape(sprintf(__('View "%s"'), $title)); ?>" rel="permalink">
 		<?php
 		switch ( $page->post_status ) {
@@ -1240,7 +1438,7 @@
 
 }
 
-function touch_time( $edit = 1, $for_post = 1, $tab_index = 0 ) {
+function touch_time( $edit = 1, $for_post = 1, $tab_index = 0, $multi = 0 ) {
 	global $wp_locale, $post, $comment;
 
 	if ( $for_post )
@@ -1250,6 +1448,8 @@
 	if ( (int) $tab_index > 0 )
 		$tab_index_attribute = " tabindex=\"$tab_index\"";
 
+  $identifier = $multi ? 'class' : 'id';
+
 	// echo '<label for="timestamp" style="display: block;"><input type="checkbox" class="checkbox" name="edit_date" value="1" id="timestamp"'.$tab_index_attribute.' /> '.__( 'Edit timestamp' ).'</label><br />';
 
 	$time_adj = time() + (get_option( 'gmt_offset' ) * 3600 );
@@ -1261,7 +1461,7 @@
 	$mn = ($edit) ? mysql2date( 'i', $post_date ) : gmdate( 'i', $time_adj );
 	$ss = ($edit) ? mysql2date( 's', $post_date ) : gmdate( 's', $time_adj );
 
-	$month = "<select id=\"mm\" name=\"mm\"$tab_index_attribute>\n";
+	$month = "<select $identifier=\"mm\" name=\"mm\"$tab_index_attribute>\n";
 	for ( $i = 1; $i < 13; $i = $i +1 ) {
 		$month .= "\t\t\t" . '<option value="' . zeroise($i, 2) . '"';
 		if ( $i == $mm )
@@ -1270,17 +1470,20 @@
 	}
 	$month .= '</select>';
 
-	$day = '<input type="text" id="jj" name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off"  />';
-	$year = '<input type="text" id="aa" name="aa" value="' . $aa . '" size="4" maxlength="5"' . $tab_index_attribute . ' autocomplete="off"  />';
-	$hour = '<input type="text" id="hh" name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off"  />';
-	$minute = '<input type="text" id="mn" name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off"  />';
+	$day = '<input type="text" ' . $identifier . '="jj" name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off"  />';
+	$year = '<input type="text" ' . $identifier . '="aa" name="aa" value="' . $aa . '" size="4" maxlength="5"' . $tab_index_attribute . ' autocomplete="off"  />';
+	$hour = '<input type="text" ' . $identifier . '="hh" name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off"  />';
+	$minute = '<input type="text" ' . $identifier . '="mn" name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off"  />';
 	printf(_c('%1$s%2$s, %3$s @ %4$s : %5$s|1: month input, 2: day input, 3: year input, 4: hour input, 5: minute input'), $month, $day, $year, $hour, $minute);
+
+	if ( $multi ) return;
+	
 	echo "\n\n";
 	foreach ( array('mm', 'jj', 'aa', 'hh', 'mn') as $timeunit )
-		echo '<input type="hidden" id="hidden_' . $timeunit . '" name="hidden_' . $timeunit . '" value="' . $$timeunit . '" />' . "\n";
+		echo '<input type="hidden" ' . $identifier . '="hidden_' . $timeunit . '" name="hidden_' . $timeunit . '" value="' . $$timeunit . '" />' . "\n";
 ?>
 
-<input type="hidden" id="ss" name="ss" value="<?php echo $ss ?>" size="2" maxlength="2" />
+<input type="hidden" <?php echo $identifier ?>="ss" name="ss" value="<?php echo $ss ?>" size="2" maxlength="2" />
 
 <a href="#edit_timestamp" class="save-timestamp hide-if-no-js button"><?php _e('OK'); ?></a>
 <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><?php _e('Cancel'); ?></a>
Index: wp-admin/js/forms.js
===================================================================
--- wp-admin/js/forms.js	(revision 8795)
+++ wp-admin/js/forms.js	(working copy)
@@ -1,12 +1,12 @@
 function checkAll(jQ) { // use attr( checked, fn )
-	jQuery(jQ).find( 'tbody:visible :checkbox' ).attr( 'checked', function() {
+	jQuery(jQ).find( 'tbody:visible .check-column :checkbox' ).attr( 'checked', function() {
 		return jQuery(this).attr( 'checked' ) ? '' : 'checked';
 	} );
 }
 
 jQuery( function($) {
 	var lastClicked = false;
-	$( 'tbody :checkbox' ).click( function(e) {
+	$( 'tbody .check-column :checkbox' ).click( function(e) {
 		if ( 'undefined' == e.shiftKey ) { return true; }
 		if ( e.shiftKey ) {
 			if ( !lastClicked ) { return true; }
Index: wp-admin/js/inline-edit.js
===================================================================
--- wp-admin/js/inline-edit.js	(revision 0)
+++ wp-admin/js/inline-edit.js	(revision 0)
@@ -0,0 +1,203 @@
+var postType = '';
+var multiKey = false;
+var postsXml = '';
+
+// keep track of the shift key
+jQuery(document).keydown(function(e) { if(e.which == 16) multiKey = true; } );
+jQuery(document).keyup(function(e) { if(e.which == 16)   multiKey = false; } );
+
+jQuery(document).ready(function() {
+	postType = window.location.href.indexOf('edit.php') != -1 ? 'post' : 'page';
+
+	// handle edit action
+	jQuery('#posts-filter input[name="doaction"]').click(function() { 
+		if(jQuery('#posts-filter select[name="action"]').val() == 'edit') {
+			editRow(selectedRows());
+			return false;       
+		}
+		return true;
+	});
+
+	// get IDs of all editable rows
+	var rows = jQuery('table.widefat .check-column :checkbox');
+	var editable = [];
+	rows.each(function(i) { editable[i] = this.value; });
+
+	// prepare the edit row
+	var blankRow = jQuery('#inline-edit');
+	jQuery('ul.categories *', blankRow).removeAttr('id');
+	jQuery('ul.categories label', blankRow).removeAttr('for');
+	jQuery('ul.categories :checkbox').each(function() {
+		jQuery(this).addClass('category-'+this.value);
+	});
+	blankRow.attr('title', 'Double-click to cancel')
+		.dblclick(function() { toggleRow(this); })
+		.keypress(function(event) { if(event.which == 13) return saveRow(this); });
+	jQuery('span.cancel a', blankRow).click(function() { return revertRow(this); });
+	jQuery('span.save a', blankRow).click(function() { return saveRow(this); });
+
+	// add events for shift-change functionality
+	jQuery('ul.categories input[type="checkbox"], td.comments input[type="checkbox"], input.private', blankRow).click(changeAll);
+	jQuery('select.author, select.status, select.mm, select.parent, select.template', blankRow).change(changeAll);
+	jQuery('input.password, input.jj, input.aa, input.hh, input.mn, textarea.tags, input.title', blankRow).blur(changeAll);
+
+	// add events to links and make rows double-clickable
+	rows.each(function() {
+		var row = jQuery('#'+postType+'-'+this.value);
+		jQuery('a.editinline', row).click(function() { editRow(this); return false; });
+		row.dblclick(function() { toggleRow(this); });
+		row.attr('title', 'Double-click to edit');
+	});
+
+	// get data for posts
+	jQuery.post('admin-ajax.php', { action: 'inline-data', posts: editable.join(',') }, function(xml) { postsXml = xml; }, 'xml');
+});
+
+function toggleRow(el) {
+	jQuery('#'+postType+'-'+getRowId(el)).css('display') == 'none' ? revertRow(el) : editRow(el);
+}
+
+// ID can be either the row object or a comma separated list of IDs
+function editRow(id) {
+	if(typeof(id) == 'object')
+		id = getRowId(id);
+
+	var blankRow = jQuery('#inline-edit');
+
+	var ids = id.split(',');
+	var fields = ['title', 'slug', 'author', 'status', 'jj', 'mm', 'aa', 'hh', 'mn'];
+	if(postType == 'page') fields.push('parent', 'order', 'template', 'password');
+	if(postType == 'post') fields.push('tags');
+
+	// iterate through the rows
+	for(var i = 0; i < ids.length; i++) {
+		id = ids[i];
+		
+		// add the new blank row
+		var editRow = blankRow.clone(true);
+		jQuery(editRow).attr('id', 'edit-'+id).addClass('inline').show();
+		if(jQuery('#'+postType+'-'+id).hasClass('alternate'))
+			jQuery(editRow).addClass('alternate');
+		jQuery('#'+postType+'-'+id).hide().after(editRow);
+		
+		// populate the data
+		var rowData = jQuery(postsXml).find('post[id="'+id+'"]');
+		for(var f = 0; f < fields.length; f++) {
+			jQuery(':input.'+fields[f], editRow).val(jQuery(fields[f], rowData).text());
+		}
+		
+		// ping, comments, and privacy
+		if(jQuery('comments', rowData).text() == 'open')
+			jQuery('input.comment', editRow).select();
+		if(jQuery('ping', rowData).text() == 'open')
+			jQuery('input.ping', editRow).select();
+		
+		// categories
+		var categories = jQuery('categories', rowData).text().split(',');
+		jQuery(categories).each(function() {
+			jQuery('ul.categories :checkbox[value="'+this+'"]', editRow).select();
+		});
+		
+		// handle the post status
+		var status = jQuery('status', rowData).text();
+		if(status != 'future') jQuery('select.status option[value="future"]', editRow).remove();
+		if(status == 'private') jQuery('input.private', editRow).select();
+		
+		// remove the current page from the parent dropdown
+		jQuery('select.parent option[value="'+id+'"]', editRow).remove();
+		// NEED TO REMOVE CHILD PAGES TOO
+	}
+
+	// enable autocomplete for tags
+	if(postType == 'post') {
+		jQuery('tr.inline textarea.tags').suggest( 'admin-ajax.php?action=ajax-tag-search', { delay: 500, minchars: 2, multiple: true, multipleSep: ", " } );
+	}
+
+	return false;
+}
+
+function saveRow(id) {
+	if(typeof(id) == 'object')
+	  id = getRowId(id);
+	if(multiKey)
+	  id = openRows();
+
+	var rows = jQuery('table.widefat tr.inline');
+
+	alert('Saving is not yet implemented.');
+	return false;
+
+	// add names to all the fields
+	var idArray = id.split(',');
+	jQuery(idArray).each(function(i) {
+		jQuery('input[type!="button"], select, textarea', jQuery('tr#'+postType+'-'+id)).each(function() {
+			jQuery(this).attr('name', this.className+'-'+idArray[i]);
+		});
+	});
+ 
+	var params = 'action=save&post_type='+postType+'&id='+id+'&';
+	params += jQuery('input[type!="button"], select, textarea', rows).fieldSerialize();
+
+	// make ajax request
+	jQuery.post('admin-ajax.php', params,
+		function(html) { 
+			//updateRow(id, 'get', html); 
+			//var row = jQuery(rowId);
+		}
+	);  
+	return false;
+}
+
+function revertRow(id) {
+	if(typeof(id) == 'object') id = getRowId(id);
+	if(multiKey) id = openRows();
+	id = id.split(',');
+
+	jQuery(id).each(function() {
+		jQuery('#edit-'+this).remove();
+		jQuery('#'+postType+'-'+this).show();
+	});
+
+	return false;
+}
+
+function changeAll(event) {
+	if(!multiKey) return;
+
+	switch(this.type) {
+		case 'checkbox':
+			var checked = this.checked ? true : false;
+			jQuery('tr.inline input.'+this.className+'[type="checkbox"]').select(checked);
+			break;
+		case 'select':
+		case 'select-one':
+			jQuery('tr.inline select.'+this.className).val(this.value);
+			break;
+		case 'text':
+			jQuery('tr.inline input.'+this.className).val(this.value);
+			break;
+		case 'textarea':
+			jQuery('tr.inline textarea.tags').val(this.value);
+			break;
+	}
+}
+
+function openRows() {
+	var ids = [];
+	jQuery('table.widefat tr.inline').each(function(i) {
+	  ids[i] = this.id.split('-')[1];
+	});
+	return ids.join(',');
+}
+
+function selectedRows() {
+	var ids = [];
+	jQuery('table.widefat .check-column :checked').each(function(i) { ids[i] = this.value; });
+	return ids.join(',');
+}
+
+function getRowId(obj) {
+	var id = obj.tagName == 'TR' ? obj.id : jQuery(obj).parents('tr').attr('id');
+	var parts = id.split('-');
+	return parts[parts.length - 1];
+}
\ No newline at end of file
Index: wp-admin/edit-post-rows.php
===================================================================
--- wp-admin/edit-post-rows.php	(revision 8795)
+++ wp-admin/edit-post-rows.php	(working copy)
@@ -27,6 +27,9 @@
 	</tr>
 	</thead>
 	<tbody>
+	  
+<?php display_edit_row('post') ?>	  
+
 <?php
 if ( have_posts() ) {
 	post_rows();
Index: wp-admin/edit.php
===================================================================
--- wp-admin/edit.php	(revision 8795)
+++ wp-admin/edit.php	(working copy)
@@ -50,7 +50,9 @@
 $title = __('Posts');
 $parent_file = 'edit.php';
 wp_enqueue_script('admin-forms');
+wp_enqueue_script('inline-edit');
 
+
 list($post_stati, $avail_post_stati) = wp_edit_posts_query();
 
 if ( 1 == count($posts) && is_singular() ) {
@@ -168,8 +170,8 @@
 <div class="alignleft">
 <select name="action">
 <option value="" selected><?php _e('Actions'); ?></option>
+<option value="edit"><?php _e('Edit'); ?></option>
 <option value="delete"><?php _e('Delete'); ?></option>
-<option value="edit"><?php _e('Edit'); ?></option>
 </select>
 <input type="submit" value="<?php _e('Apply'); ?>" name="doaction" class="button-secondary action" />
 <?php wp_nonce_field('bulk-posts'); ?>
Index: wp-admin/edit-pages.php
===================================================================
--- wp-admin/edit-pages.php	(revision 8795)
+++ wp-admin/edit-pages.php	(working copy)
@@ -44,6 +44,7 @@
 $title = __('Pages');
 $parent_file = 'edit.php';
 wp_enqueue_script('admin-forms');
+wp_enqueue_script('inline-edit');
 
 $post_stati  = array(	//	array( adj, noun )
 		'publish' => array(__('Published'), __('Published pages'), __ngettext_noop('Published (%s)', 'Published (%s)')),
@@ -153,6 +154,7 @@
 <div class="alignleft">
 <select name="action">
 <option value="" selected><?php _e('Actions'); ?></option>
+<option value="edit"><?php _e('Edit'); ?></option>
 <option value="delete"><?php _e('Delete'); ?></option>
 </select>
 <input type="submit" value="<?php _e('Apply'); ?>" name="doaction" class="button-secondary action" />
@@ -187,6 +189,7 @@
   </tr>
   </thead>
   <tbody>
+  <?php display_edit_row('page') ?>
   <?php page_rows($posts, $pagenum, $per_page); ?>
   </tbody>
 </table>

