Make WordPress Core


Ignore:
Timestamp:
11/30/2003 10:13:53 PM (21 years ago)
Author:
saxmatt
Message:

Made status dropdowns radio boxes, more moderation cleanups. Edit section now clean.

File:
1 edited

Legend:

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

    r546 r560  
    322322
    323323        // pingWeblogs($blog_ID);
    324 
    325         header ('Location: ' . $HTTP_SERVER_VARS['HTTP_REFERER']);
     324        $sendback = $HTTP_SERVER_VARS['HTTP_REFERER'];
     325        if (strstr($sendback, 'wp-post')) $sendback = $siteurl .'/wp-admin/wp-post.php';
     326        header ('Location: ' . $sendback);
    326327
    327328        break;
     
    576577                        $draft->post_title = stripslashes($draft->post_title);
    577578                        if ($draft->post_title == '')
    578                             $draft->post_title = 'post-'.$draft->ID;
     579                            $draft->post_title = 'Post #'.$draft->ID;
    579580                        echo "<a href='wp-post.php?action=edit&amp;post=$draft->ID' title='Edit this draft'>$draft->post_title</a>";
    580581                        ++$i;
Note: See TracChangeset for help on using the changeset viewer.