Changeset 6921 for trunk/src/includes/topics/template.php
- Timestamp:
- 11/07/2019 06:56:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/topics/template.php
r6903 r6921 3082 3082 // Trashed notice 3083 3083 case bbp_get_trash_status_id() : 3084 $notice_text = esc_html__( 'This topic is in the trash.', 'bbpress' ); 3084 $notice_text = esc_html__( 'This topic is in the trash.', 'bbpress' ); 3085 break; 3086 3087 // Pending notice 3088 case bbp_get_pending_status_id() : 3089 $notice_text = esc_html__( 'This topic is pending moderation.', 'bbpress' ); 3085 3090 break; 3086 3091 … … 3336 3341 // Topic has activity (could be from reply or topic author) 3337 3342 $last_active = bbp_get_topic_last_active_id( $topic_id ); 3338 if ( ! empty( $ last_active ) ) {3343 if ( ! empty( $vc_int ) && ! empty( $last_active ) ) { 3339 3344 $last_updated_by = bbp_get_author_link( array( 'post_id' => $last_active, 'size' => $r['size'] ) ); 3340 3345 $retstr = sprintf( esc_html__( 'This topic has %1$s, %2$s, and was last updated %3$s by %4$s.', 'bbpress' ), $reply_count, $voice_count, $time_since, $last_updated_by ); 3341 3346 3342 3347 // Topic has no replies 3343 } elseif ( ! empty( $v oice_count ) && ! empty( $reply_count ) ) {3348 } elseif ( ! empty( $vc_int ) && ! empty( $reply_count ) ) { 3344 3349 $retstr = sprintf( esc_html__( 'This topic has %1$s and %2$s.', 'bbpress' ), $voice_count, $reply_count ); 3345 3350 3346 3351 // Topic has no replies and no voices 3347 } elseif ( empty( $voice_count ) && empty( $reply_count ) ) { 3348 $retstr = sprintf( esc_html__( 'This topic has no replies.', 'bbpress' ), $voice_count, $reply_count ); 3352 } elseif ( empty( $vc_int ) && empty( $reply_count ) ) { 3353 $retstr = esc_html__( 'This topic has no replies.', 'bbpress' ); 3354 3355 // Topic is pending 3356 } elseif ( bbp_get_topic_status( $topic_id ) === bbp_get_pending_status_id() ) { 3357 $retstr = esc_html__( 'This topic is pending moderation.', 'bbpress' ); 3358 3359 // Fallback 3360 } else { 3361 $retstr = esc_html__( 'This topic is empty.', 'bbpress' ); 3349 3362 } 3350 3363
Note: See TracChangeset
for help on using the changeset viewer.