Draggable dash, first cut. Props mdawaffe. see #7552

git-svn-id: https://develop.svn.wordpress.org/trunk@9103 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-10-08 23:32:34 +00:00
parent 8ec0862e2a
commit 638a41bf49
25 changed files with 462 additions and 787 deletions
+2 -5
View File
@@ -86,7 +86,6 @@ case 'postajaxpost':
case 'post':
case 'post-quickpress-publish':
case 'post-quickpress-save':
case 'post-quickpress-save-cont':
check_admin_referer('add-post');
if ( 'post-quickpress-publish' == $action )
@@ -104,13 +103,11 @@ case 'post-quickpress-save-cont':
$post_ID = 'postajaxpost' == $action ? edit_post() : write_post();
}
if ( 'post-quickpress-save-cont' != $action && 0 === strpos( $action, 'post-quickpress' ) ) {
if ( 0 === strpos( $action, 'post-quickpress' ) ) {
$_POST['post_ID'] = $post_ID;
// output the quickpress dashboard widget
require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
add_filter( 'wp_dashboard_widgets', create_function( '$a', 'return array( "dashboard_quick_press" );' ) );
wp_dashboard_setup();
wp_dashboard();
wp_dashboard_quick_press();
exit;
}