Ticket #1670: 1670.2.diff
| File 1670.2.diff, 1.7 KB (added by , 14 years ago) |
|---|
-
bbp-metaboxes.php
148 148 <?php 149 149 $num = $topic_count_hidden; 150 150 $text = _n( 'Hidden Topic', 'Hidden Topics', $topic_count_hidden, 'bbpress' ); 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>';151 $link = add_query_arg( array( 'post_type' => bbp_get_topic_post_type(),'post_status' => 'spam' ), get_admin_url( null, 'edit.php' ) ); 152 $num = '<a href="' . $link . '" title="' . esc_attr( $hidden_topic_title ) . '">' . $num . '</a>'; 153 153 $text = '<a class="waiting" href="' . $link . '" title="' . esc_attr( $hidden_topic_title ) . '">' . $text . '</a>'; 154 154 ?> 155 155 … … 167 167 <?php 168 168 $num = $reply_count_hidden; 169 169 $text = _n( 'Hidden Reply', 'Hidden Replies', $reply_count_hidden, 'bbpress' ); 170 $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>';170 $link = add_query_arg( array( 'post_type' => bbp_get_reply_post_type(),'post_status' => 'spam' ), get_admin_url( null, 'edit.php' ) ); 171 $num = '<a href="' . $link . '" title="' . esc_attr( $hidden_reply_title ) . '">' . $num . '</a>'; 172 172 $text = '<a class="waiting" href="' . $link . '" title="' . esc_attr( $hidden_reply_title ) . '">' . $text . '</a>'; 173 173 ?> 174 174