Make WordPress Core


Ignore:
Timestamp:
10/08/2008 11:32:34 PM (18 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post.php

    r8995 r9103  
    8787case 'post-quickpress-publish':
    8888case 'post-quickpress-save':
    89 case 'post-quickpress-save-cont':
    9089    check_admin_referer('add-post');
    9190
     
    105104    }
    106105
    107     if ( 'post-quickpress-save-cont' != $action && 0 === strpos( $action, 'post-quickpress' ) ) {
     106    if ( 0 === strpos( $action, 'post-quickpress' ) ) {
    108107        $_POST['post_ID'] = $post_ID;
    109108        // output the quickpress dashboard widget
    110109        require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
    111         add_filter( 'wp_dashboard_widgets', create_function( '$a', 'return array( "dashboard_quick_press" );' ) );
    112         wp_dashboard_setup();
    113         wp_dashboard();
     110        wp_dashboard_quick_press();
    114111        exit;
    115112    }
Note: See TracChangeset for help on using the changeset viewer.