Changeset 4961 for trunk/bp-members/bp-members-adminbar.php
- Timestamp:
- 08/10/2011 06:32:02 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-adminbar.php
r4920 r4961 111 111 'href' => bp_get_members_component_link( 'profile', 'edit' ) 112 112 ) ); 113 113 114 114 // User Admin > Edit this user's avatar 115 115 $wp_admin_bar->add_menu( array( … … 119 119 'href' => bp_get_members_component_link( 'profile', 'change-avatar' ) 120 120 ) ); 121 121 122 122 // User Admin > Spam/unspam 123 123 if ( !bp_core_is_user_spammer( bp_displayed_user_id() ) ) { … … 127 127 'title' => __( 'Mark as Spammer', 'buddypress' ), 128 128 'href' => wp_nonce_url( bp_displayed_user_domain() . 'admin/mark-spammer/', 'mark-unmark-spammer' ), 129 'meta' => array( 'onclick' => 'confirm(" ' . __( 'Are you sure you want to mark this user as a spammer?', 'buddypress' ) . '");' ) 130 ) ); 129 'meta' => array( 'onclick' => 'confirm(" ' . __( 'Are you sure you want to mark this user as a spammer?', 'buddypress' ) . '");' ) 130 ) ); 131 131 } else { 132 132 $wp_admin_bar->add_menu( array( … … 135 135 'title' => __( 'Not a Spammer', 'buddypress' ), 136 136 'href' => wp_nonce_url( bp_displayed_user_domain() . 'admin/unmark-spammer/', 'mark-unmark-spammer' ), 137 'meta' => array( 'onclick' => 'confirm(" ' . __( 'Are you sure you want to mark this user as not a spammer?', 'buddypress' ) . '");' ) 138 ) ); 139 } 140 137 'meta' => array( 'onclick' => 'confirm(" ' . __( 'Are you sure you want to mark this user as not a spammer?', 'buddypress' ) . '");' ) 138 ) ); 139 } 140 141 141 // User Admin > Delete Account 142 142 $wp_admin_bar->add_menu( array( … … 145 145 'title' => __( 'Delete Account', 'buddypress' ), 146 146 'href' => wp_nonce_url( bp_displayed_user_domain() . 'admin/delete-user/', 'delete-user' ), 147 'meta' => array( 'onclick' => 'confirm(" ' . __( "Are you sure you want to delete this user's account?", 'buddypress' ) . '");' ) 147 'meta' => array( 'onclick' => 'confirm(" ' . __( "Are you sure you want to delete this user's account?", 'buddypress' ) . '");' ) 148 148 ) ); 149 149 } … … 161 161 if ( !is_user_logged_in() ) 162 162 return false; 163 163 164 164 if ( $notifications = bp_core_get_notifications_for_user( bp_loggedin_user_id(), 'object' ) ) { 165 165 $menu_title = sprintf( __( 'Notifications <span id="ab-pending-notifications" class="pending-count">%s</span>', 'buddypress' ), count( $notifications ) ); … … 167 167 $menu_title = __( 'Notifications', 'buddypress' ); 168 168 } 169 169 170 170 // Add the top-level Notifications button 171 171 $wp_admin_bar->add_menu( array( … … 174 174 'href' => bp_loggedin_user_domain() 175 175 ) ); 176 176 177 177 if ( !empty( $notifications ) ) { 178 178 foreach ( (array)$notifications as $notification ) { … … 192 192 ) ); 193 193 } 194 194 195 195 return; 196 196 }
Note: See TracChangeset
for help on using the changeset viewer.