Plugin Directory

Changeset 821041


Ignore:
Timestamp:
12/13/2013 12:23:50 PM (12 years ago)
Author:
mindstien
Message:

update

Location:
publish-and-redirect-to-add-new-post/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • publish-and-redirect-to-add-new-post/trunk/publish-and-redirect-to-add-new-post.php

    r715258 r821041  
    44Plugin URI: http://www.mindstien.com
    55Description: By default when you add new post and hit 'publish' or 'save draft' button, wordpress redirects to 'post edit screen' of the same post, but this little plugin will help you go to add new post screen each time you add new post to help you keep adding multiple posts more faster.
    6 Version: 1.3
    7 Author: Chirag Gadara (Mindstien Technologies)
     6Version: 1.4
     7Author: Mindstien Technologies
    88Author URI: http://www.mindstien.com
    99*/
     
    1515function prn_post_submitbox_misc_actions_function()
    1616{
     17    global $post;
     18    //echo "<pre>".print_r($post,true)."</pre>";
    1719    echo "<div style='padding:5px;'>
     20    <input type='hidden' name='prn_redirect_post_type' id='prn_redirect_post_type' value='".$post->post_type."'>
    1821    <input type='hidden' name='prn_redirect' id='prn_redirect' value='no'>
    1922    <input type='button' style='white-space:normal;width:30%;height:auto;float:left;' id='prn_draft' name='submit-new' value='Save & Add New' class='button button-primary button-large'>
     
    5154    if(isset($_POST['prn_redirect']) AND $_POST['prn_redirect']=='yes')
    5255    {
    53         wp_redirect(admin_url('post-new.php'));
     56        wp_redirect(admin_url('post-new.php?post_type='.$_POST['prn_redirect_post_type']));
    5457        die();
    5558    }
  • publish-and-redirect-to-add-new-post/trunk/readme.txt

    r715258 r821041  
    44Tags: new post, redirect, bulk posts, publish post, publish and redirect
    55Requires at least: 3.0
    6 Tested up to: 3.5.1
    7 Stable tag: 1.3
     6Tested up to: 3.8
     7Stable tag: 1.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3838
    3939== Changelog ==
     401.4 bug fixed for page to page redirection.
    40411.3 Added new button for 'publish & visit now', see the screenshot
    41421.2 bug fixed....
Note: See TracChangeset for help on using the changeset viewer.