Changeset 1565582
- Timestamp:
- 01/01/2017 06:51:52 AM (9 years ago)
- Location:
- copy-move-posts/trunk
- Files:
-
- 3 edited
-
admin_page.php (modified) (3 diffs)
-
function.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
copy-move-posts/trunk/admin_page.php
r1565578 r1565582 7 7 //alert("helo"); 8 8 $("#convert_post").submit(function () { 9 /*var isnum = /^\d+$/;9 var isnum = /^\d+$/; 10 10 var need=$('#needCount').val(); 11 11 if(!isnum.test(need)) 12 12 { 13 alert("Please enter only numeric value."); 14 return false; 15 }*/ 13 if(need==-1) 14 { 15 return true; 16 } 17 else if(need<-1) 18 { 19 alert("Please enter value bigger than -1."); 20 $('#needCount').val(-1); 21 return false; 22 } 23 else 24 { 25 alert("Please enter only numeric value."); 26 $('#needCount').val(-1); 27 return false; 28 } 29 } 16 30 $(".submitBtn").css("display", 'none'); 17 31 $(".sbt_text").css("display", 'block'); … … 43 57 <select name="post_to"> 44 58 <?php foreach ($post_type as $types) { 45 if($types->name!='attachment' && $types->name!='revision' && $types->name!='nav_menu_item' ) {?>59 if($types->name!='attachment' && $types->name!='revision' && $types->name!='nav_menu_item' && $types->name!='custom_css' && $types->name!='customize_changeset') {?> 46 60 <option value="<?php echo $types->name;?>"><?php echo $types->labels->name?> (<?php echo $types->name;?>)</option> 47 61 <?php } }?> … … 49 63 </div><br> 50 64 <span><b>Enter post count that you want to copy or move:</b></span> 51 <input type=" number" name="need_count" id="needCount" min="-1" value="-1" onkeypress="return ((event.charCode >= 48 && event.charCode <= 57)|| event.charCode == 45)"><span>-1 means all posts.</span>65 <input type="text" name="need_count" id="needCount" value="-1"><span>-1 means all posts.</span> 52 66 53 67 <br> -
copy-move-posts/trunk/function.php
r1565578 r1565582 27 27 if(isset($_POST['need_count'])) 28 28 { 29 if($_POST['need_count']=='' )29 if($_POST['need_count']=='' || $_POST['need_count']<'-1') 30 30 { 31 31 $pagination=-1; -
copy-move-posts/trunk/readme.txt
r1565578 r1565582 7 7 License: GPLv3 8 8 9 Any one can move and copy bulk postfrom one post type to another post type easily.9 Any one can move and copy posts from one post type to another post type easily. 10 10 11 11 == Description == … … 22 22 == Installation == 23 23 24 Upload Copy Move Posts plugin to your wordpress site and you will find plugin menu in your wordpress admin panel, it's Done. 24 Copy Move Posts plugin installation is very easy. 25 26 You have to only install and activate Copy Move Posts plugin in to your wordpress website. 27 28 Then nothing, It's done. 29 30 Then You can see "Move or Copy" menu name in your wordpress admin panel from there you can use this plugin easily. 31 25 32 26 33 == Frequently Asked Questions == … … 37 44 = 1.1 - 01/01/17 = 38 45 * Check wordpress Version compatibility. 39 * Fix- added post count for copy and move posts.46 * New - added post count for copy and move posts. 40 47 * Fix - Remove some default wordpress post from list. 41 48 = 1.1 - 12/07/16 =
Note: See TracChangeset
for help on using the changeset viewer.