Changeset 6227 for trunk/src/includes/admin/metaboxes.php
- Timestamp:
- 01/12/2017 11:21:05 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/admin/metaboxes.php (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/metaboxes.php
r6200 r6227 26 26 if ( current_user_can( 'publish_forums' ) ) { 27 27 $link = add_query_arg( array( 'post_type' => bbp_get_forum_post_type() ), get_admin_url( null, 'edit.php' ) ); 28 $text = sprintf( _n( '%s Forum', '%s Forums', $r['forum_count '], 'bbpress' ), $r['forum_count'] );28 $text = sprintf( _n( '%s Forum', '%s Forums', $r['forum_count_int'], 'bbpress' ), $r['forum_count'] ); 29 29 $elements[] = '<a href="' . esc_url( $link ) . '" class="bbp-glance-forums">' . esc_html( $text ) . '</a>'; 30 30 } … … 33 33 if ( current_user_can( 'publish_topics' ) ) { 34 34 $link = add_query_arg( array( 'post_type' => bbp_get_topic_post_type() ), get_admin_url( null, 'edit.php' ) ); 35 $text = sprintf( _n( '%s Topic', '%s Topics', $r['topic_count '], 'bbpress' ), $r['topic_count'] );35 $text = sprintf( _n( '%s Topic', '%s Topics', $r['topic_count_int'], 'bbpress' ), $r['topic_count'] ); 36 36 $elements[] = '<a href="' . esc_url( $link ) . '" class="bbp-glance-topics">' . esc_html( $text ) . '</a>'; 37 37 } … … 40 40 if ( current_user_can( 'publish_replies' ) ) { 41 41 $link = add_query_arg( array( 'post_type' => bbp_get_reply_post_type() ), get_admin_url( null, 'edit.php' ) ); 42 $text = sprintf( _n( '%s Reply', '%s Replies', $r['reply_count '], 'bbpress' ), $r['reply_count'] );42 $text = sprintf( _n( '%s Reply', '%s Replies', $r['reply_count_int'], 'bbpress' ), $r['reply_count'] ); 43 43 $elements[] = '<a href="' . esc_url( $link ) . '" class="bbp-glance-replies">' . esc_html( $text ) . '</a>'; 44 44 } … … 47 47 if ( bbp_allow_topic_tags() && current_user_can( 'manage_topic_tags' ) ) { 48 48 $link = add_query_arg( array( 'taxonomy' => bbp_get_topic_tag_tax_id(), 'post_type' => bbp_get_topic_post_type() ), get_admin_url( null, 'edit-tags.php' ) ); 49 $text = sprintf( _n( '%s Topic Tag', '%s Topic Tags', $r['topic_tag_count '], 'bbpress' ), $r['topic_tag_count'] );49 $text = sprintf( _n( '%s Topic Tag', '%s Topic Tags', $r['topic_tag_count_int'], 'bbpress' ), $r['topic_tag_count'] ); 50 50 $elements[] = '<a href="' . esc_url( $link ) . '" class="bbp-glance-topic-tags">' . esc_html( $text ) . '</a>'; 51 51 } … … 95 95 <?php 96 96 $num = $r['forum_count']; 97 $text = _n( 'Forum', 'Forums', $r['forum_count '], 'bbpress' );97 $text = _n( 'Forum', 'Forums', $r['forum_count_int'], 'bbpress' ); 98 98 if ( current_user_can( 'publish_forums' ) ) { 99 99 $link = add_query_arg( array( 'post_type' => bbp_get_forum_post_type() ), get_admin_url( null, 'edit.php' ) ); … … 112 112 <?php 113 113 $num = $r['topic_count']; 114 $text = _n( 'Topic', 'Topics', $r['topic_count '], 'bbpress' );114 $text = _n( 'Topic', 'Topics', $r['topic_count_int'], 'bbpress' ); 115 115 if ( current_user_can( 'publish_topics' ) ) { 116 116 $link = add_query_arg( array( 'post_type' => bbp_get_topic_post_type() ), get_admin_url( null, 'edit.php' ) ); … … 129 129 <?php 130 130 $num = $r['reply_count']; 131 $text = _n( 'Reply', 'Replies', $r['reply_count '], 'bbpress' );131 $text = _n( 'Reply', 'Replies', $r['reply_count_int'], 'bbpress' ); 132 132 if ( current_user_can( 'publish_replies' ) ) { 133 133 $link = add_query_arg( array( 'post_type' => bbp_get_reply_post_type() ), get_admin_url( null, 'edit.php' ) ); … … 148 148 <?php 149 149 $num = $r['topic_tag_count']; 150 $text = _n( 'Topic Tag', 'Topic Tags', $r['topic_tag_count '], 'bbpress' );150 $text = _n( 'Topic Tag', 'Topic Tags', $r['topic_tag_count_int'], 'bbpress' ); 151 151 if ( current_user_can( 'manage_topic_tags' ) ) { 152 152 $link = add_query_arg( array( 'taxonomy' => bbp_get_topic_tag_tax_id(), 'post_type' => bbp_get_topic_post_type() ), get_admin_url( null, 'edit-tags.php' ) ); … … 180 180 <?php 181 181 $num = $r['user_count']; 182 $text = _n( 'User', 'Users', $r['user_count '], 'bbpress' );182 $text = _n( 'User', 'Users', $r['user_count_int'], 'bbpress' ); 183 183 if ( current_user_can( 'edit_users' ) ) { 184 184 $link = get_admin_url( null, 'users.php' ); … … 199 199 <?php 200 200 $num = $r['topic_count_hidden']; 201 $text = _n( 'Hidden Topic', 'Hidden Topics', $r['topic_count_hidden '], 'bbpress' );201 $text = _n( 'Hidden Topic', 'Hidden Topics', $r['topic_count_hidden_int'], 'bbpress' ); 202 202 $link = add_query_arg( array( 'post_type' => bbp_get_topic_post_type() ), get_admin_url( null, 'edit.php' ) ); 203 203 if ( '0' !== $num ) { … … 221 221 <?php 222 222 $num = $r['reply_count_hidden']; 223 $text = _n( 'Hidden Reply', 'Hidden Replies', $r['reply_count_hidden '], 'bbpress' );223 $text = _n( 'Hidden Reply', 'Hidden Replies', $r['reply_count_hidden_int'], 'bbpress' ); 224 224 $link = add_query_arg( array( 'post_type' => bbp_get_reply_post_type() ), get_admin_url( null, 'edit.php' ) ); 225 225 if ( '0' !== $num ) { … … 243 243 <?php 244 244 $num = $r['empty_topic_tag_count']; 245 $text = _n( 'Empty Topic Tag', 'Empty Topic Tags', $r['empty_topic_tag_count '], 'bbpress' );245 $text = _n( 'Empty Topic Tag', 'Empty Topic Tags', $r['empty_topic_tag_count_int'], 'bbpress' ); 246 246 $link = add_query_arg( array( 'taxonomy' => bbp_get_topic_tag_tax_id(), 'post_type' => bbp_get_topic_post_type() ), get_admin_url( null, 'edit-tags.php' ) ); 247 247 $num = '<a href="' . esc_url( $link ) . '">' . $num . '</a>';
Note: See TracChangeset
for help on using the changeset viewer.