Skip to:
Content

bbPress.org

Changeset 4562


Ignore:
Timestamp:
12/10/2012 02:04:24 AM (9 years ago)
Author:
johnjamesjacoby
Message:

Topic/Reply admin links:

  • Add filters to links arrays.
  • Props mordauk.
  • Fixes #2090.
Location:
trunk/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/replies/template-tags.php

    r4522 r4562  
    14571457        // If no links were passed, default to the standard
    14581458        if ( empty( $r['links'] ) ) {
    1459             $r['links'] = array (
     1459            $r['links'] = apply_filters( 'bbp_reply_admin_links', array(
    14601460                'edit'  => bbp_get_reply_edit_link ( $r ),
    14611461                'move'  => bbp_get_reply_move_link ( $r ),
     
    14631463                'trash' => bbp_get_reply_trash_link( $r ),
    14641464                'spam'  => bbp_get_reply_spam_link ( $r ),
    1465             );
     1465            ), $r['id'] );
    14661466        }
    14671467
  • trunk/includes/topics/template-tags.php

    r4522 r4562  
    21912191
    21922192        if ( empty( $r['links'] ) ) {
    2193             $r['links'] = array(
     2193            $r['links'] = apply_filters( 'bbp_topic_admin_links', array(
    21942194                'edit'  => bbp_get_topic_edit_link ( $r ),
    21952195                'close' => bbp_get_topic_close_link( $r ),
     
    21982198                'trash' => bbp_get_topic_trash_link( $r ),
    21992199                'spam'  => bbp_get_topic_spam_link ( $r ),
    2200             );
     2200            ), $r['id'] );
    22012201        }
    22022202
Note: See TracChangeset for help on using the changeset viewer.