Skip to:
Content

bbPress.org

Changeset 4845


Ignore:
Timestamp:
04/12/2013 04:25:44 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Fix bug in bbp_get_topic_excerpt() that was causing it to always fail. Reverse the parameters of get_post_field() to be in the correct order. See #2300.

File:
1 edited

Legend:

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

    r4834 r4845  
    678678        $topic_id = bbp_get_topic_id( $topic_id );
    679679        $length   = (int) $length;
    680         $excerpt  = get_post_field( $topic_id, 'post_excerpt' );
     680        $excerpt  = get_post_field( 'post_excerpt', $topic_id );
    681681
    682682        if ( empty( $excerpt ) ) {
Note: See TracChangeset for help on using the changeset viewer.