- Timestamp:
- 02/08/2016 05:56:22 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-settings/classes/class-bp-settings-component.php
r10524 r10555 184 184 // General Account. 185 185 $wp_admin_nav[] = array( 186 'parent' => 'my-account-' . $this->id, 187 'id' => 'my-account-' . $this->id . '-general', 188 'title' => __( 'General', 'buddypress' ), 189 'href' => $settings_link 186 'parent' => 'my-account-' . $this->id, 187 'id' => 'my-account-' . $this->id . '-general', 188 'title' => __( 'General', 'buddypress' ), 189 'href' => $settings_link, 190 'position' => 10 190 191 ); 191 192 … … 193 194 if ( has_action( 'bp_notification_settings' ) ) { 194 195 $wp_admin_nav[] = array( 195 'parent' => 'my-account-' . $this->id, 196 'id' => 'my-account-' . $this->id . '-notifications', 197 'title' => __( 'Email', 'buddypress' ), 198 'href' => trailingslashit( $settings_link . 'notifications' ) 196 'parent' => 'my-account-' . $this->id, 197 'id' => 'my-account-' . $this->id . '-notifications', 198 'title' => __( 'Email', 'buddypress' ), 199 'href' => trailingslashit( $settings_link . 'notifications' ), 200 'position' => 20 199 201 ); 200 202 } 201 203 202 // Delete Account .204 // Delete Account 203 205 if ( !bp_current_user_can( 'bp_moderate' ) && ! bp_core_get_root_option( 'bp-disable-account-deletion' ) ) { 204 206 $wp_admin_nav[] = array( 205 'parent' => 'my-account-' . $this->id, 206 'id' => 'my-account-' . $this->id . '-delete-account', 207 'title' => __( 'Delete Account', 'buddypress' ), 208 'href' => trailingslashit( $settings_link . 'delete-account' ) 207 'parent' => 'my-account-' . $this->id, 208 'id' => 'my-account-' . $this->id . '-delete-account', 209 'title' => __( 'Delete Account', 'buddypress' ), 210 'href' => trailingslashit( $settings_link . 'delete-account' ), 211 'position' => 90 209 212 ); 210 213 }
Note: See TracChangeset
for help on using the changeset viewer.