Plugin Directory

Changeset 1565582


Ignore:
Timestamp:
01/01/2017 06:51:52 AM (9 years ago)
Author:
ujjavaljani
Message:

Text Changes

Location:
copy-move-posts/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • copy-move-posts/trunk/admin_page.php

    r1565578 r1565582  
    77        //alert("helo");
    88        $("#convert_post").submit(function () {
    9             /*var isnum = /^\d+$/;
     9            var isnum = /^\d+$/;
    1010            var need=$('#needCount').val();
    1111            if(!isnum.test(need))
    1212            {
    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            }
    1630            $(".submitBtn").css("display", 'none');
    1731            $(".sbt_text").css("display", 'block');
     
    4357        <select name="post_to">
    4458            <?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') {?>
    4660                <option value="<?php echo $types->name;?>"><?php echo $types->labels->name?> (<?php echo $types->name;?>)</option>
    4761            <?php } }?>
     
    4963        </div><br>
    5064        <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>
    5266
    5367        <br>
  • copy-move-posts/trunk/function.php

    r1565578 r1565582  
    2727        if(isset($_POST['need_count']))
    2828        {
    29             if($_POST['need_count']=='')
     29            if($_POST['need_count']=='' || $_POST['need_count']<'-1')
    3030            {
    3131                $pagination=-1;
  • copy-move-posts/trunk/readme.txt

    r1565578 r1565582  
    77License: GPLv3
    88
    9 Any one can move and copy bulk post from one post type to another post type easily.
     9Any one can move and copy posts from one post type to another post type easily.
    1010
    1111== Description ==
     
    2222== Installation ==
    2323
    24 Upload Copy Move Posts plugin to your wordpress site and you will find plugin menu in your wordpress admin panel, it's Done.
     24Copy Move Posts plugin installation is very easy.
     25
     26You have to only install and activate Copy Move Posts plugin in to your wordpress website.
     27
     28Then nothing, It's done.
     29
     30Then You can see "Move or Copy" menu name in your wordpress admin panel from there you can use this plugin easily.
     31
    2532
    2633== Frequently Asked Questions ==
     
    3744= 1.1 - 01/01/17 =
    3845* Check wordpress Version compatibility.
    39 * Fix - added post count for copy and move posts.
     46* New - added post count for copy and move posts.
    4047* Fix - Remove some default wordpress post from list.
    4148= 1.1 - 12/07/16 =
Note: See TracChangeset for help on using the changeset viewer.