Make WordPress Core

Ticket #7366: 7366.diff

File 7366.diff, 611 bytes (added by scohoust, 18 years ago)

Checks for WP_Error and displays accordingly

  • Users/Scott/Sites/wp/trunk/wp-admin/link-category.php

     
    7373                        $location = $referer;
    7474        }
    7575
    76         if ( wp_update_term($cat_ID, 'link_category', $_POST) )
     76        $update =  wp_update_term($cat_ID, 'link_category', $_POST);
     77
     78        if ( $update && !is_wp_error($update) )
    7779                $location = add_query_arg('message', 3, $location);
    7880        else
    7981                $location = add_query_arg('message', 5, $location);