Changeset 4583 for trunk/wp-admin/admin-ajax.php
- Timestamp:
- 12/01/2006 11:00:04 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/admin-ajax.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r4575 r4583 148 148 'id' => $cat->cat_ID, 149 149 '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)) 151 151 ) ); 152 152 $x->send(); … … 212 212 exit; 213 213 } 214 $user_object = new WP_User( $user_id ); 214 215 $x = new WP_Ajax_Response( array( 215 216 'what' => 'user', 216 217 '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)) 218 220 ) ); 219 221 $x->send();
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)