WordPress.org

Make WordPress Core

Changeset 20086


Ignore:
Timestamp:
03/02/12 21:01:51 (3 years ago)
Author:
duck_
Message:

Bail from AJAX success callback if wp_ajax_add_tag() returns errors. Props solarissmoke. Fixes #20086.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/tags.dev.js

    r17777 r20086  
    3434 
    3535        $.post(ajaxurl, $('#addtag').serialize(), function(r){ 
    36            $('#ajax-response').empty(); 
     36            $('#ajax-response').empty(); 
    3737            var res = wpAjax.parseAjaxResponse(r, 'ajax-response'); 
    38             if ( ! res ) 
     38            if ( ! res || res.errors ) 
    3939                return; 
    4040 
Note: See TracChangeset for help on using the changeset viewer.