Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/10/2014 09:29:19 PM (10 years ago)
Author:
imath
Message:

On BuddyPress pages, make sure the edit link is not displayed if the corresponding post ID is not set

This prevents the edit link to show at the bottom of BuddyPress pages and allow plugins to get an edit link in case they are using it (providing a post ID) in a BuddyPress page.

Fixes #5853

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-theme-compatibility.php

    r8994 r9001  
    559559
    560560    // If we are in theme compat, we don't need the 'Edit' post link
    561     add_filter( 'get_edit_post_link', '__return_false' );
     561    add_filter( 'get_edit_post_link', 'bp_core_filter_edit_post_link', 10, 2 );
    562562}
    563563
Note: See TracChangeset for help on using the changeset viewer.