Skip to:
Content

bbPress.org

Changeset 1597


Ignore:
Timestamp:
07/23/2008 01:49:57 AM (18 years ago)
Author:
sambauers
Message:

Add filter to post edit link, fixes #888, props f00f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/template-functions.php

    r1596 r1597  
    13921392    if ( bb_current_user_can( 'edit_post', $bb_post->post_id ) ) {
    13931393        $uri = bb_get_uri('edit.php', array('id' => $bb_post->post_id));
    1394         return "<a href='" . attribute_escape( apply_filters( 'post_edit_uri', $uri, $bb_post->post_id ) ) . "'>". __('Edit') ."</a>";
     1394        $r = "<a href='" . attribute_escape( apply_filters( 'post_edit_uri', $uri, $bb_post->post_id ) ) . "'>". __('Edit') ."</a>";
     1395        return apply_filters('bb_get_post_edit_link', $r, get_post_id( $post_id ) );
    13951396    }
    13961397}
Note: See TracChangeset for help on using the changeset viewer.