Changeset 3625
- Timestamp:
- 11/20/2011 09:54:14 AM (14 years ago)
- File:
-
- 1 edited
-
branches/plugin/bbp-admin/bbp-metaboxes.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-admin/bbp-metaboxes.php
r3624 r3625 150 150 $text = _n( 'Hidden Topic', 'Hidden Topics', $topic_count_hidden, 'bbpress' ); 151 151 $link = add_query_arg( array( 'post_type' => bbp_get_topic_post_type() ), get_admin_url( null, 'edit.php' ) ); 152 $num = '<a href="' . $link . '" title="' . esc_attr( $hidden_topic_title ) . '">' . $num . '</a>'; 152 if ( '0' != $num ) { 153 $link = add_query_arg( array( 'post_status' => bbp_get_spam_status_id() ), $link ); 154 } 155 $num = '<a href="' . $link . '" title="' . esc_attr( $hidden_topic_title ) . '">' . $num . '</a>'; 153 156 $text = '<a class="waiting" href="' . $link . '" title="' . esc_attr( $hidden_topic_title ) . '">' . $text . '</a>'; 154 157 ?> … … 169 172 $text = _n( 'Hidden Reply', 'Hidden Replies', $reply_count_hidden, 'bbpress' ); 170 173 $link = add_query_arg( array( 'post_type' => bbp_get_reply_post_type() ), get_admin_url( null, 'edit.php' ) ); 171 $num = '<a href="' . $link . '" title="' . esc_attr( $hidden_reply_title ) . '">' . $num . '</a>'; 174 if ( '0' != $num ) { 175 $link = add_query_arg( array( 'post_status' => bbp_get_spam_status_id() ), $link ); 176 } 177 $num = '<a href="' . $link . '" title="' . esc_attr( $hidden_reply_title ) . '">' . $num . '</a>'; 172 178 $text = '<a class="waiting" href="' . $link . '" title="' . esc_attr( $hidden_reply_title ) . '">' . $text . '</a>'; 173 179 ?>
Note: See TracChangeset
for help on using the changeset viewer.