Skip to:
Content

bbPress.org

Changeset 3625


Ignore:
Timestamp:
11/20/2011 09:54:14 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Tweak hidden topic and reply dashboard right-now links. Fixes #1670.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-admin/bbp-metaboxes.php

    r3624 r3625  
    150150                                                $text = _n( 'Hidden Topic', 'Hidden Topics', $topic_count_hidden, 'bbpress' );
    151151                                                $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>';
    153156                                                $text = '<a class="waiting" href="' . $link . '" title="' . esc_attr( $hidden_topic_title ) . '">' . $text . '</a>';
    154157                                        ?>
     
    169172                                                $text = _n( 'Hidden Reply', 'Hidden Replies', $reply_count_hidden, 'bbpress' );
    170173                                                $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>';
    172178                                                $text = '<a class="waiting" href="' . $link . '" title="' . esc_attr( $hidden_reply_title ) . '">' . $text . '</a>';
    173179                                        ?>
Note: See TracChangeset for help on using the changeset viewer.