Skip to:
Content

bbPress.org

Ticket #1670: 1670.2.diff

File 1670.2.diff, 1.7 KB (added by Ipstenu, 14 years ago)

Mimic behavior of comments dashboard widget, and just link to spam all the time.

  • bbp-metaboxes.php

     
    148148                                        <?php
    149149                                                $num  = $topic_count_hidden;
    150150                                                $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>';
    153153                                                $text = '<a class="waiting" href="' . $link . '" title="' . esc_attr( $hidden_topic_title ) . '">' . $text . '</a>';
    154154                                        ?>
    155155
     
    167167                                        <?php
    168168                                                $num  = $reply_count_hidden;
    169169                                                $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>';
    172172                                                $text = '<a class="waiting" href="' . $link . '" title="' . esc_attr( $hidden_reply_title ) . '">' . $text . '</a>';
    173173                                        ?>
    174174