Skip to:
Content

BuddyPress.org

Ticket #5853: 5853.03.patch

File 5853.03.patch, 1.4 KB (added by imath, 12 years ago)
  • src/bp-core/bp-core-filters.php

    diff --git src/bp-core/bp-core-filters.php src/bp-core/bp-core-filters.php
    index 069014a..34036f9 100644
    function bp_core_activation_signup_user_notification( $user, $user_email, $key,  
    370370                                return $user;
    371371                        }
    372372
    373                 /** 
     373                /**
    374374                 * There can be a case where the user was created without the skip confirmation
    375375                 * And the super admin goes in pending accounts to resend it. In this case, as the
    376376                 * meta['password'] is not set, the activation url must be WordPress one
    … … add_filter( 'wp_setup_nav_menu_item', 'bp_setup_nav_menu_item', 10, 1 );  
    605605function bp_filter_metaid_column_name( $q ) {
    606606        return str_replace( 'meta_id', 'id', $q );
    607607}
     608
     609function bp_core_edit_post_link( $edit_link = '', $post_id = 0 ) {
     610        if ( 0 === $post_id ) {
     611                $edit_link = false;
     612        }
     613
     614        return $edit_link;
     615}
  • src/bp-core/bp-core-theme-compatibility.php

    diff --git src/bp-core/bp-core-theme-compatibility.php src/bp-core/bp-core-theme-compatibility.php
    index 7911c5b..bfaa4ae 100644
    function bp_theme_compat_reset_post( $args = array() ) {  
    558558        bp_set_theme_compat_active( true );
    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_edit_post_link', 10, 2 );
    562562}
    563563
    564564/**