Skip to:
Content

BuddyPress.org

Changeset 10190


Ignore:
Timestamp:
10/05/2015 10:32:34 PM (8 years ago)
Author:
imath
Message:

Cover Image: Add a menu item to the User Admin menu of the WP Admin Bar

Inside the WP Admin Bar when viewing a user's profile, a menu allows the Administrator to edit the displayed user's profile. He will now also be able to edit the user's cover image.

See #6570

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-adminbar.php

    r10149 r10190  
    115115        }
    116116
     117        // User Admin > Edit this user's cover image
     118        if ( bp_displayed_user_use_cover_image_header() ) {
     119            $wp_admin_bar->add_menu( array(
     120                'parent' => $bp->user_admin_menu_id,
     121                'id'     => $bp->user_admin_menu_id . '-change-cover-image',
     122                'title'  => __( 'Edit Cover Image', 'buddypress' ),
     123                'href'   => bp_get_members_component_link( 'profile', 'change-cover-image' )
     124            ) );
     125        }
     126
    117127    }
    118128
Note: See TracChangeset for help on using the changeset viewer.