WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/18/2008 10:10:41 AM (12 years ago)
Author:
azaozz
Message:

crazyhorse: fixed toolbar on write post screen, sortables js improvements, no redirect after publishing post

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/crazyhorse/wp-admin/post.php

    r8150 r8371  
    2121    } elseif ( !empty($_POST['mode']) && 'sidebar' == $_POST['mode'] ) {
    2222        $location = 'sidebar.php?a=b';
    23     } elseif ( isset($_POST['save']) && ( empty($referredby) || $referredby == $referer || 'redo' != $referredby ) ) {
     23    } elseif ( ( isset($_POST['save']) || isset($_POST['publish']) ) && ( empty($referredby) || $referredby == $referer || 'redo' != $referredby ) ) {
    2424        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 )
    2525            $location = add_query_arg( '_wp_original_http_referer', urlencode( stripslashes( $_POST['_wp_original_http_referer'] ) ), "post.php?action=edit&post=$post_ID&message=1" );
    2626        else
    27             $location = "post.php?action=edit&post=$post_ID&message=4";
     27            $location = "post.php?action=edit&post=$post_ID&message=6";
    2828    } elseif (isset($_POST['addmeta']) && $_POST['addmeta']) {
    2929        $location = add_query_arg( 'message', 2, wp_get_referer() );
Note: See TracChangeset for help on using the changeset viewer.