Skip to:
Content

BuddyPress.org

Ticket #6196: 6196.patch

File 6196.patch, 963 bytes (added by ipm-frommen, 10 years ago)
  • plugins/buddypress/bp-members/bp-members-admin.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    470470         * @since BuddyPress (2.1.0)
    471471         */
    472472        public function profile_admin_head() {
    473                 global $submenu_file, $parent_file;
     473                global $hook_suffix, $submenu_file, $parent_file;
    474474
    475475                // Is the user editing their own profile?
    476476                if ( is_user_admin() || ( defined( 'IS_PROFILE_PAGE' ) && IS_PROFILE_PAGE ) ) {
    477477                        $this->is_self_profile = true;
    478478
    479479                // Is the user attempting to edit their own profile
    480                 } else {
     480                } elseif ( $hook_suffix === $this->user_page ) {
    481481                        $this->is_self_profile = (bool) ( $this->get_user_id() === $this->current_user_id );
    482482                }
    483483