Changeset 39376

Show
Ignore:
Timestamp:
04/09/08 06:15:56 (3 months ago)
Author:
ketsugi
Message:

[FIX] A conflict with WordPress that caused an error when trying to delete a draft has been corrected

Location:
acronyms/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • acronyms/trunk/acronyms.php

    r39007 r39376  
    201201            wp_reset_vars(array('action', 'acronym')); 
    202202 
    203             if ( isset( $_GET['deleteit'] ) ) // Bulk delete array of acronyms 
    204                   $action = 'delete'; 
     203            if ( isset( $_GET['delete-acronyms'] ) ) // Bulk delete array of acronyms 
     204                  $action = 'delete-acronym'; 
    205205            else if ( isset( $_GET['search'] ) ) // Search term for redirecting to less crufty HTTP GET URL 
    206206              $action = 'search'; 
     
    228228                        break; 
    229229               
    230                   case 'delete': 
    231                         check_admin_referer('delete-acronym'); 
     230                  case 'delete-acronym': 
     231                        check_admin_referer('delete-acronyms'); 
    232232 
    233233            if ( !current_user_can('manage_categories') ) 
     
    404404 
    405405    <div class="alignleft"> 
    406       <input type="submit" value="<?php _e('Delete') ?>" name="deleteit" class="button-secondary delete" /> 
     406      <input type="submit" value="<?php _e('Delete') ?>" name="delete-acronyms" class="button-secondary delete" /> 
    407407<?php 
    408             wp_nonce_field('delete-acronym');  
     408            wp_nonce_field('delete-acronyms'); 
    409409            if ( $filter ) {  
    410410                  echo '<select name="n" id="n">'; 
  • acronyms/trunk/readme.txt

    r38901 r39376  
    3333== Change Log == 
    3434 
     35* 1.5.2 - ??? 
     36   * [FIX] A conflict with WordPress that caused an error when trying to delete a draft has been corrected 
     37   * [FIX] The full text for TIFF in the default list of acronyms has been corrected 
     38   * [UPD] Deprecated action hooks replaced with the current versions 
    3539* 1.5.1 - 7 Apr 2008 
    3640   * Fixed an unexpected side-effect of WordPress' new plugin auto-update that broke some paths