Changeset 5111
- Timestamp:
- 09/27/2013 07:04:47 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/common/widgets.php
r5063 r5111 804 804 805 805 // Maybe get the topic author 806 if ( 'on' === $settings['show_user']) :806 if ( ! empty( $settings['show_user'] ) ) : 807 807 $author_link = bbp_get_topic_author_link( array( 'post_id' => $topic_id, 'type' => 'both', 'size' => 14 ) ); 808 808 endif; ?> … … 817 817 <?php endif; ?> 818 818 819 <?php if ( 'on' === $settings['show_date']) : ?>819 <?php if ( ! empty( $settings['show_date'] ) ) : ?> 820 820 821 821 <div><?php bbp_topic_last_active_time( $topic_id ); ?></div> … … 1155 1155 1156 1156 // Only query user if showing them 1157 if ( 'on' === $settings['show_user']) :1157 if ( ! empty( $settings['show_user'] ) ) : 1158 1158 $author_link = bbp_get_reply_author_link( array( 'post_id' => $reply_id, 'type' => 'both', 'size' => 14 ) ); 1159 1159 else : … … 1162 1162 1163 1163 // Reply author, link, and timestamp 1164 if ( ( 'on' ===$settings['show_date'] ) && !empty( $author_link ) ) :1164 if ( ! empty( $settings['show_date'] ) && !empty( $author_link ) ) : 1165 1165 1166 1166 // translators: 1: reply author, 2: reply link, 3: reply timestamp … … 1168 1168 1169 1169 // Reply link and timestamp 1170 elseif ( 'on' === $settings['show_date']) :1170 elseif ( ! empty( $settings['show_date'] ) ) : 1171 1171 1172 1172 // translators: 1: reply link, 2: reply timestamp
Note: See TracChangeset
for help on using the changeset viewer.