Make WordPress Core

Changeset 8392


Ignore:
Timestamp:
07/21/2008 05:52:38 PM (16 years ago)
Author:
ryan
Message:

Check for WP_Error return from wp_update_term(). Props scohoust. fixes #7366 for 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/wp-admin/link-category.php

    r8389 r8392  
    7575    }
    7676
    77     if ( wp_update_term($cat_ID, 'link_category', $_POST) )
     77    $update =  wp_update_term($cat_ID, 'link_category', $_POST);
     78
     79    if ( $update && !is_wp_error($update) )
    7880        $location = add_query_arg('message', 3, $location);
    7981    else
Note: See TracChangeset for help on using the changeset viewer.