Skip to:
Content

Ticket #6831: 6831-remove-edit-link.diff

File 6831-remove-edit-link.diff, 586 bytes (added by tw2113, 8 months ago)
  • src/bp-core/bp-core-adminbar.php

    diff --git src/bp-core/bp-core-adminbar.php src/bp-core/bp-core-adminbar.php
    index 4207e53bd..91750d15b 100644
    function bp_admin_bar_my_account_root() { 
    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                 } 
    4842        } 
    4943} 
    5044add_action( 'admin_bar_menu', 'bp_admin_bar_my_account_root', 100 );