Changeset 821041
- Timestamp:
- 12/13/2013 12:23:50 PM (12 years ago)
- Location:
- publish-and-redirect-to-add-new-post/trunk
- Files:
-
- 2 edited
-
publish-and-redirect-to-add-new-post.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
publish-and-redirect-to-add-new-post/trunk/publish-and-redirect-to-add-new-post.php
r715258 r821041 4 4 Plugin URI: http://www.mindstien.com 5 5 Description: 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. 37 Author: Chirag Gadara (Mindstien Technologies)6 Version: 1.4 7 Author: Mindstien Technologies 8 8 Author URI: http://www.mindstien.com 9 9 */ … … 15 15 function prn_post_submitbox_misc_actions_function() 16 16 { 17 global $post; 18 //echo "<pre>".print_r($post,true)."</pre>"; 17 19 echo "<div style='padding:5px;'> 20 <input type='hidden' name='prn_redirect_post_type' id='prn_redirect_post_type' value='".$post->post_type."'> 18 21 <input type='hidden' name='prn_redirect' id='prn_redirect' value='no'> 19 22 <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'> … … 51 54 if(isset($_POST['prn_redirect']) AND $_POST['prn_redirect']=='yes') 52 55 { 53 wp_redirect(admin_url('post-new.php '));56 wp_redirect(admin_url('post-new.php?post_type='.$_POST['prn_redirect_post_type'])); 54 57 die(); 55 58 } -
publish-and-redirect-to-add-new-post/trunk/readme.txt
r715258 r821041 4 4 Tags: new post, redirect, bulk posts, publish post, publish and redirect 5 5 Requires at least: 3.0 6 Tested up to: 3. 5.17 Stable tag: 1. 36 Tested up to: 3.8 7 Stable tag: 1.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 38 38 39 39 == Changelog == 40 1.4 bug fixed for page to page redirection. 40 41 1.3 Added new button for 'publish & visit now', see the screenshot 41 42 1.2 bug fixed....
Note: See TracChangeset
for help on using the changeset viewer.