Changeset 6135
- Timestamp:
- 12/08/2016 02:43:27 PM (8 years ago)
- Location:
- trunk/src/includes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/functions.php
r6115 r6135 513 513 if ( current_user_can( 'read_private_topics' ) || current_user_can( 'edit_others_topics' ) || current_user_can( 'view_trash' ) ) { 514 514 515 // Declare empty arrays 516 $topics = $topic_titles = array(); 517 515 518 // Pending 516 519 $topics['pending'] = ( ! empty( $r['count_pending_topics'] ) && current_user_can( 'edit_others_topics' ) ) ? (int) $all_topics->{$pending} : 0; … … 549 552 if ( current_user_can( 'read_private_replies' ) || current_user_can( 'edit_others_replies' ) || current_user_can( 'view_trash' ) ) { 550 553 554 // Declare empty arrays 555 $replies = $reply_titles = array(); 556 551 557 // Pending 552 558 $replies['pending'] = ( ! empty( $r['count_pending_replies'] ) && current_user_can( 'edit_others_replies' ) ) ? (int) $all_replies->{$pending} : 0; … … 572 578 // Compile the hidden replies title 573 579 $hidden_reply_title = implode( ' | ', array_filter( $reply_titles ) ); 574 575 580 } 576 581 } -
trunk/src/includes/forums/functions.php
r6113 r6135 2195 2195 // Default to public status 2196 2196 if ( empty( $post_stati ) ) { 2197 $post_stati [] = bbp_get_public_status_id();2197 $post_stati = array( bbp_get_public_status_id() ); 2198 2198 2199 2199 // Split the status string -
trunk/src/includes/forums/template.php
r6056 r6135 694 694 695 695 // Setup post status array 696 $post_stati [] = bbp_get_public_status_id();696 $post_stati = array( bbp_get_public_status_id() ); 697 697 698 698 // Super admin get whitelisted post statuses -
trunk/src/includes/users/template.php
r6118 r6135 1722 1722 $anonymous = bbp_is_reply_anonymous( $r['post_id'] ); 1723 1723 1724 // Declare empty array 1725 $author_links = array(); 1726 1724 1727 // Get avatar 1725 1728 if ( 'avatar' === $r['type'] || 'both' === $r['type'] ) {
Note: See TracChangeset
for help on using the changeset viewer.