Changeset 3349 for branches/plugin/bbp-includes/bbp-topic-template.php
- Timestamp:
- 06/27/2011 10:18:38 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-topic-template.php
r3348 r3349 1606 1606 * @uses bbp_get_topic_permalink() To get the topic permalink 1607 1607 * @uses remove_query_arg() To remove args from the url 1608 * @uses bbp_get_topic_ hidden_reply_count() To get the topic hidden1608 * @uses bbp_get_topic_reply_count_hidden() To get the topic hidden 1609 1609 * reply count 1610 1610 * @uses current_user_can() To check if the current user can edit others … … 1630 1630 1631 1631 // This forum has hidden topics 1632 if ( current_user_can( 'edit_others_replies' ) && ( $deleted = bbp_get_topic_ hidden_reply_count( $topic_id ) ) ) {1632 if ( current_user_can( 'edit_others_replies' ) && ( $deleted = bbp_get_topic_reply_count_hidden( $topic_id ) ) ) { 1633 1633 1634 1634 // Extra text … … 1714 1714 * 1715 1715 * @param int $topic_id Optional. Topic id 1716 * @uses bbp_get_topic_ hidden_reply_count() To get the topic hidden reply count1717 */ 1718 function bbp_topic_ hidden_reply_count( $topic_id = 0 ) {1719 echo bbp_get_topic_ hidden_reply_count( $topic_id );1716 * @uses bbp_get_topic_reply_count_hidden() To get the topic hidden reply count 1717 */ 1718 function bbp_topic_reply_count_hidden( $topic_id = 0 ) { 1719 echo bbp_get_topic_reply_count_hidden( $topic_id ); 1720 1720 } 1721 1721 /** … … 1728 1728 * @uses bbp_get_topic_id() To get the topic id 1729 1729 * @uses get_post_meta() To get the hidden reply count 1730 * @uses apply_filters() Calls 'bbp_get_topic_ hidden_reply_count' with1730 * @uses apply_filters() Calls 'bbp_get_topic_reply_count_hidden' with 1731 1731 * the hidden reply count and topic id 1732 1732 * @return int Topic hidden reply count 1733 1733 */ 1734 function bbp_get_topic_ hidden_reply_count( $topic_id = 0 ) {1734 function bbp_get_topic_reply_count_hidden( $topic_id = 0 ) { 1735 1735 $topic_id = bbp_get_topic_id( $topic_id ); 1736 $replies = get_post_meta( $topic_id, '_bbp_ hidden_reply_count', true );1737 1738 return apply_filters( 'bbp_get_topic_ hidden_reply_count', (int) $replies, $topic_id );1736 $replies = get_post_meta( $topic_id, '_bbp_reply_count_hidden', true ); 1737 1738 return apply_filters( 'bbp_get_topic_reply_count_hidden', (int) $replies, $topic_id ); 1739 1739 } 1740 1740
Note: See TracChangeset
for help on using the changeset viewer.