Make WordPress Core

Changeset 8391


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

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

File:
1 edited

Legend:

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

    r8388 r8391  
    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.