Changeset 5243 for trunk/bp-forums/bp-forums-functions.php
- Timestamp:
- 10/15/2011 08:47:41 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-functions.php
r5129 r5243 166 166 return false; 167 167 168 if ( empty( $topic_poster ) ) 169 return false; 170 171 if ( bp_core_is_user_spammer( $topic_poster ) || bp_core_is_user_deleted( $topic_poster ) ) 172 return false; 173 168 174 if ( empty( $topic_slug ) ) 169 175 $topic_slug = sanitize_title( $topic_title ); … … 502 508 $post_position = $post->post_position; 503 509 510 if ( empty( $poster_id ) ) 511 return false; 512 513 if ( bp_core_is_user_spammer( $poster_id ) || bp_core_is_user_deleted( $poster_id ) ) 514 return false; 515 504 516 $post_id = bb_insert_post( array( 'post_id' => $post_id, 'topic_id' => $topic_id, 'post_text' => stripslashes( trim( $post_text ) ), 'post_time' => $post_time, 'poster_id' => $poster_id, 'poster_ip' => $poster_ip, 'post_status' => $post_status, 'post_position' => $post_position ) ); 505 517
Note: See TracChangeset
for help on using the changeset viewer.