Changeset 4255
- Timestamp:
- 10/19/2012 12:50:06 AM (13 years ago)
- Location:
- trunk/bbp-includes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bbp-includes/replies/functions.php
r4249 r4255 500 500 // Maybe put into moderation 501 501 if ( !bbp_check_for_moderation( $anonymous_data, $reply_author, $reply_title, $reply_content ) ) { 502 $reply_status = bbp_get_pending_status_id(); 503 504 // Default 502 503 // Set post status to pending if public 504 if ( bbp_get_public_status_id() == $reply->post_status ) { 505 $reply_status = bbp_get_pending_status_id(); 506 } 507 508 // Use existing post_status 505 509 } else { 506 $reply_status = bbp_get_public_status_id();510 $reply_status = $reply->post_status; 507 511 } 508 512 -
trunk/bbp-includes/replies/template-tags.php
r4249 r4255 1572 1572 return; 1573 1573 1574 $reply_link = bbp_ get_reply_permalink( $reply_id);1574 $reply_link = bbp_remove_view_all( bbp_get_reply_permalink( $reply_id ) ); 1575 1575 1576 1576 // Pretty permalinks … … 1583 1583 $url = add_query_arg( array( bbp_get_reply_post_type() => $reply->post_name, $bbp->edit_id => '1' ), $reply_link ); 1584 1584 } 1585 1586 // Maybe add view all 1587 $url = bbp_add_view_all( $url ); 1585 1588 1586 1589 return apply_filters( 'bbp_get_reply_edit_url', $url, $reply_id ); -
trunk/bbp-includes/topics/functions.php
r4249 r4255 556 556 // Maybe put into moderation 557 557 if ( !bbp_check_for_moderation( $anonymous_data, $topic_author, $topic_title, $topic_content ) ) { 558 $topic_status = bbp_get_pending_status_id(); 559 560 // Default to published 558 559 // Set post status to pending if public or closed 560 if ( in_array( $topic->post_status, array( bbp_get_public_status_id(), bbp_get_closed_status_id() ) ) ) { 561 $topic_status = bbp_get_pending_status_id(); 562 } 563 564 // Use existing post_status 561 565 } else { 562 $topic_status = bbp_get_public_status_id();566 $topic_status = $topic->post_status; 563 567 } 564 568 -
trunk/bbp-includes/topics/template-tags.php
r4249 r4255 2300 2300 return; 2301 2301 2302 $topic_link = bbp_get_topic_permalink( $topic_id ); 2302 // Remove view=all link from edit 2303 $topic_link = bbp_remove_view_all( bbp_get_topic_permalink( $topic_id ) ); 2303 2304 2304 2305 // Pretty permalinks … … 2311 2312 $url = add_query_arg( array( bbp_get_topic_post_type() => $topic->post_name, $bbp->edit_id => '1' ), $topic_link ); 2312 2313 } 2314 2315 // Maybe add view=all 2316 $url = bbp_add_view_all( $url ); 2313 2317 2314 2318 return apply_filters( 'bbp_get_topic_edit_url', $url, $topic_id );
Note: See TracChangeset
for help on using the changeset viewer.