Make WordPress Core


Ignore:
Timestamp:
09/06/2008 06:10:38 AM (17 years ago)
Author:
azaozz
Message:

Few sidebar.php updates, functionality and look similar to the quick-post dashboard widget

File:
1 edited

Legend:

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

    r8832 r8834  
    3535        $location = $_POST['referredby'];
    3636    } elseif ( !empty($_POST['mode']) && 'sidebar' == $_POST['mode'] ) {
    37         $location = 'sidebar.php?a=b';
     37        if ( isset($_POST['saveasdraft']) )
     38            $location = 'sidebar.php?a=c';
     39        elseif ( isset($_POST['publish']) )
     40            $location = 'sidebar.php?a=b';
    3841    } elseif ( ( isset($_POST['save']) || isset($_POST['publish']) ) && ( empty($referredby) || $referredby == $referer || 'redo' != $referredby ) ) {
    3942        if ( $_POST['_wp_original_http_referer'] && strpos( $_POST['_wp_original_http_referer'], '/wp-admin/post.php') === false && strpos( $_POST['_wp_original_http_referer'], '/wp-admin/post-new.php') === false )
Note: See TracChangeset for help on using the changeset viewer.