Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/28/2012 10:25:50 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Improve forum and topic description texts to include empty cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-topic-template.php

    r3845 r3855  
    27772777
    27782778        // Topic has no replies
    2779         } else {
     2779        } elseif ( ! empty( $voice_count ) && ! empty( $reply_count ) ) {
    27802780            $retstr = sprintf( __( 'This topic contains %1$s and has %2$s.', 'bbpress' ), $voice_count, $reply_count );
     2781
     2782        // Topic has no replies and no voices
     2783        } elseif ( empty( $voice_count ) && empty( $reply_count ) ) {
     2784            $retstr = sprintf( __( 'This topic has no replies.', 'bbpress' ), $voice_count, $reply_count );
    27812785        }
    27822786
Note: See TracChangeset for help on using the changeset viewer.