Changeset 4042
- Timestamp:
- 07/02/2012 12:39:16 AM (13 years ago)
- Location:
- branches/plugin/bbp-includes
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-extend-akismet.php
r4017 r4042 57 57 // bbPress functions for spam and ham submissions 58 58 $checks['submit'] = array( 59 'bbp_spammed_topic' 60 'bbp_unspammed_topic' 61 'bbp_spammed_reply' 62 'bbp_unspammed_reply' 59 'bbp_spammed_topic' => 10, // Spammed topic 60 'bbp_unspammed_topic' => 10, // Unspammed reply 61 'bbp_spammed_reply' => 10, // Spammed reply 62 'bbp_unspammed_reply' => 10, // Unspammed reply 63 63 ); 64 64 … … 193 193 * Submit a post for spamming or hamming 194 194 * 195 * @since bbPress ( {unknown})195 * @since bbPress (r3277) 196 196 * 197 197 * @param int $post_id -
branches/plugin/bbp-includes/bbp-forum-functions.php
r4041 r4042 229 229 /** Additional Actions (Before Save) **************************************/ 230 230 231 do_action( 'bbp_new_forum_pre_extras', $forum_parent_id ); 232 231 233 // Bail if errors 232 234 if ( bbp_has_errors() ) … … 234 236 235 237 /** No Errors *************************************************************/ 236 237 do_action( 'bbp_new_forum_pre_extras', $forum_parent_id );238 238 239 239 // Add the content of the form to $forum_data as an array -
branches/plugin/bbp-includes/bbp-reply-functions.php
r4041 r4042 228 228 229 229 /** Additional Actions (Before Save) **************************************/ 230 230 231 do_action( 'bbp_new_reply_pre_extras', $topic_id, $forum_id ); 232 231 233 // Bail if errors 232 234 if ( bbp_has_errors() ) … … 234 236 235 237 /** No Errors *************************************************************/ 236 237 do_action( 'bbp_new_reply_pre_extras', $topic_id, $forum_id );238 238 239 239 // Add the content of the form to $reply_data as an array … … 505 505 'post_title' => $reply_title, 506 506 'post_content' => $reply_content, 507 'post_status' => $post_status 507 'post_status' => $post_status, 508 'post_parent' => $reply->post_parent, 509 'post_author' => $reply->post_author, 510 'post_type' => bbp_get_reply_post_type() 508 511 ) ); 509 512 -
branches/plugin/bbp-includes/bbp-reply-template.php
r4040 r4042 1878 1878 * Output the value of reply content field 1879 1879 * 1880 * @since bbPress {unknown}1880 * @since bbPress (r31301) 1881 1881 * 1882 1882 * @uses bbp_get_form_reply_content() To get value of reply content field … … 1888 1888 * Return the value of reply content field 1889 1889 * 1890 * @since bbPress {unknown}1890 * @since bbPress (r31301) 1891 1891 * 1892 1892 * @uses bbp_is_reply_edit() To check if it's the reply edit page … … 1914 1914 * Output checked value of reply log edit field 1915 1915 * 1916 * @since bbPress {unknown}1916 * @since bbPress (r31301) 1917 1917 * 1918 1918 * @uses bbp_get_form_reply_log_edit() To get the reply log edit value … … 1924 1924 * Return checked value of reply log edit field 1925 1925 * 1926 * @since bbPress {unknown}1926 * @since bbPress (r31301) 1927 1927 * 1928 1928 * @uses apply_filters() Calls 'bbp_get_form_reply_log_edit' with the … … 1946 1946 * Output the value of the reply edit reason 1947 1947 * 1948 * @since bbPress {unknown}1948 * @since bbPress (r31301) 1949 1949 * 1950 1950 * @uses bbp_get_form_reply_edit_reason() To get the reply edit reason value … … 1956 1956 * Return the value of the reply edit reason 1957 1957 * 1958 * @since bbPress {unknown}1958 * @since bbPress (r31301) 1959 1959 * 1960 1960 * @uses apply_filters() Calls 'bbp_get_form_reply_edit_reason' with the -
branches/plugin/bbp-includes/bbp-topic-functions.php
r4041 r4042 259 259 } 260 260 261 /** Additional Actions (Before Save) **************************************/ 262 263 do_action( 'bbp_new_topic_pre_extras', $forum_id ); 264 261 265 // Bail if errors 262 266 if ( bbp_has_errors() ) … … 264 268 265 269 /** No Errors *************************************************************/ 266 267 do_action( 'bbp_new_topic_pre_extras', $forum_id );268 270 269 271 // Add the content of the form to $topic_data as an array. … … 574 576 /** No Errors *************************************************************/ 575 577 576 /** Stickies **********************************************************/577 578 if ( !empty( $_POST['bbp_stick_topic'] ) && in_array( $_POST['bbp_stick_topic'], array( 'stick', 'super', 'unstick' ) ) ) {579 580 // What's the dilly?581 switch ( $_POST['bbp_stick_topic'] ) {582 583 // Sticky in forum584 case 'stick' :585 bbp_stick_topic( $topic_id );586 break;587 588 // Sticky in all forums589 case 'super' :590 bbp_stick_topic( $topic_id, true );591 break;592 593 // Normal594 case 'unstick' :595 default :596 bbp_unstick_topic( $topic_id );597 break;598 }599 }600 601 /** Update the topic ******************************************************/602 603 578 // Add the content of the form to $topic_data as an array 604 579 // Just in time manipulation of topic data before being edited … … 609 584 'post_status' => $post_status, 610 585 'post_parent' => $forum_id, 586 'post_author' => $topic->post_author, 587 'post_type' => bbp_get_topic_post_type(), 611 588 'tax_input' => $terms, 612 589 ) ); … … 614 591 // Insert topic 615 592 $topic_id = wp_update_post( $topic_data ); 593 594 /** Stickies **************************************************************/ 595 596 if ( !empty( $_POST['bbp_stick_topic'] ) && in_array( $_POST['bbp_stick_topic'], array( 'stick', 'super', 'unstick' ) ) ) { 597 598 // What's the dilly? 599 switch ( $_POST['bbp_stick_topic'] ) { 600 601 // Sticky in forum 602 case 'stick' : 603 bbp_stick_topic( $topic_id ); 604 break; 605 606 // Sticky in all forums 607 case 'super' : 608 bbp_stick_topic( $topic_id, true ); 609 break; 610 611 // Normal 612 case 'unstick' : 613 default : 614 bbp_unstick_topic( $topic_id ); 615 break; 616 } 617 } 616 618 617 619 /** Revisions *************************************************************/
Note: See TracChangeset
for help on using the changeset viewer.