Make WordPress Core


Ignore:
Timestamp:
12/01/2006 11:00:04 PM (20 years ago)
Author:
ryan
Message:

Better AJAX feedback messages and markup fixes. Props mdawaffe. fixes #3208

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r4575 r4583  
    148148                'id' => $cat->cat_ID,
    149149                'data' => _cat_row( $cat, $level, $cat_full_name ),
    150                 'supplemental' => array('name' => $cat_full_name)
     150                'supplemental' => array('name' => $cat_full_name, 'show-link' => sprintf(__( 'Category <a href="#%s">%s</a> added' ), "cat-$cat->cat_ID", $cat_full_name))
    151151        ) );
    152152        $x->send();
    … …  
    212212                exit;
    213213        }
     214        $user_object = new WP_User( $user_id );
    214215        $x = new WP_Ajax_Response( array(
    215216                'what' => 'user',
    216217                'id' => $user_id,
    217                 'data' => user_row( $user_id )
     218                'data' => user_row( $user_object ),
     219                'supplemental' => array('show-link' => sprintf(__( 'User <a href="#%s">%s</a> added' ), "user-$user_id", $user_object->user_login))
    218220        ) );
    219221        $x->send();
Note: See TracChangeset for help on using the changeset viewer.