Make WordPress Core


Ignore:
Timestamp:
07/01/2009 08:12:39 AM (15 years ago)
Author:
azaozz
Message:

Use new jQuery methods when adding, editing and deleting tags with AJAX, fix warning when deleting tags, see #10239

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r11555 r11676  
    664664                    $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>';
    665665                    $actions['inline hide-if-no-js'] = '<a href="#" class="editinline">' . __('Quick&nbsp;Edit') . '</a>';
    666                     $actions['delete'] = "<a class='delete:the-list:tag-$tag->term_id submitdelete' href='" . wp_nonce_url("edit-tags.php?action=delete&amp;taxonomy=$taxonomy&amp;tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id) . "'>" . __('Delete') . "</a>";
     666                    $actions['delete'] = "<a class='delete-tag' href='" . wp_nonce_url("edit-tags.php?action=delete&amp;taxonomy=$taxonomy&amp;tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id) . "'>" . __('Delete') . "</a>";
    667667                    $actions = apply_filters('tag_row_actions', $actions, $tag);
    668668                    $action_count = count($actions);
     
    731731    $count = 0;
    732732    foreach( $tags as $tag )
    733         $out .= _tag_row( $tag, ++$count % 2 ? ' class="iedit alternate"' : ' class="iedit"', $taxonomy );
     733        $out .= _tag_row( $tag, ++$count % 2 ? ' class="alternate"' : '', $taxonomy );
    734734
    735735    // filter and send to screen
Note: See TracChangeset for help on using the changeset viewer.