Skip to:
Content

BuddyPress.org

Ticket #5853: 5853.02.patch

File 5853.02.patch, 1005 bytes (added by r-a-y, 12 years ago)
  • src/bp-core/bp-core-adminbar.php

     
    3939                                'class' => 'ab-sub-secondary'
    4040                        )
    4141                ) );
     42
     43                // Remove 'Edit' post link as it's not applicable to BP
     44                // Remove when https://core.trac.wordpress.org/ticket/29538 is addressed
     45                if ( is_buddypress() ) {
     46                        $wp_admin_bar->remove_node( 'edit' );
     47                }
    4248        }
    4349}
    4450add_action( 'admin_bar_menu', 'bp_admin_bar_my_account_root', 100 );
  • src/bp-core/bp-core-theme-compatibility.php

     
    556556
    557557        // If we are resetting a post, we are in theme compat
    558558        bp_set_theme_compat_active( true );
     559
     560        // If we are in theme compat, we don't need the 'Edit' post link
     561        add_filter( 'get_edit_post_link', '__return_false' );
    559562}
    560563
    561564/**