WordPress.org

Plugin Directory

Changeset 630320


Ignore:
Timestamp:
11/26/12 20:17:53 (17 months ago)
Author:
ramon fincken
Message:

New version 1.6.1
Bugfix: All categories

Location:
auto-prune-posts
Files:
7 added
3 edited

Legend:

Unmodified
Added
Removed
  • auto-prune-posts/trunk/auto-prune-posts-adminpage.php

    r630306 r630320  
    1919 
    2020<form id="form1" name="form1" method="post" action="" onsubmit="return confirm('Are you sure?')"> 
    21 Delete posts in <?php wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'cat_id_add', 'hierarchical' => true, 'orderby' => 'name', 'show_option_all' => 'true')); ?> after 
     21Delete posts in <?php wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'cat_id_add', 'hierarchical' => true, 'orderby' => 'name', 'show_option_all' => 'All')); ?> after 
    2222<input type="text" maxlength="6" name="period_duration_add" style="width: 45px;"> 
    2323  <select name="period_add"> 
  • auto-prune-posts/trunk/auto-prune-posts.php

    r630306 r630320  
    144144                case 'add' : 
    145145                    if (isset ($_POST['period_duration_add']) && !empty ($_POST['period_duration_add']) && intval($_POST['period_duration_add']) > 0) { 
    146                         if (in_array($_POST['period_add'], $plugin->periods) && intval($_POST['cat_id_add']) > 0) { 
     146                        if (in_array($_POST['period_add'], $plugin->periods) && intval($_POST['cat_id_add']) >= 0) { 
    147147                            $period_php = intval(trim($_POST['period_duration_add'])) . ' ' . $_POST['period_add']; 
    148148                            $period = intval(trim($_POST['period_duration_add'])); 
  • auto-prune-posts/trunk/readme.txt

    r630306 r630320  
    44Requires at least: 2.3 
    55Tested up to: 3.4.2 
    6 Stable tag: 1.6 
     6Stable tag: 1.6.1 
    77 
    88Auto deletes (prune) posts after a certain amount of time. On a per category basis. Handy if you want to have posts with a limited timeframe such as offers, coupons etc.. Posts will auto delete on a per category basis. 
     
    3535 
    3636== Changelog == 
     37= 1.6.1 = 
     38Bugfix: All categories 
     39 
    3740= 1.6 = 
    3841Added: All categories support 
Note: See TracChangeset for help on using the changeset viewer.