Skip to:
Content

bbPress.org

Changeset 4844


Ignore:
Timestamp:
04/12/2013 04:24:22 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Fix bug in bbp_get_reply_excerpt() that was causing it to always fail. Reverse the parameters of get_post_field() to be in the correct order. Props paulgibbs. Fixes #2300.

File:
1 edited

Legend:

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

    r4825 r4844  
    513513        $reply_id = bbp_get_reply_id( $reply_id );
    514514        $length   = (int) $length;
    515         $excerpt  = get_post_field( $reply_id, 'post_excerpt' );
     515        $excerpt  = get_post_field( 'post_excerpt', $reply_id );
    516516
    517517        if ( empty( $excerpt ) ) {
Note: See TracChangeset for help on using the changeset viewer.