Changeset 7193
- Timestamp:
- 04/26/2021 01:30:21 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/extend/akismet.php
r7156 r7193 89 89 $user_data = array(); 90 90 $post_permalink = ''; 91 92 // Post is not published93 if ( bbp_get_public_status_id() !== $post_data['post_status'] ) {94 return $post_data;95 }96 91 97 92 // Cast the post_author to 0 if it's empty … … 200 195 * necessary. For example, switch the status to `spam` if spammy. 201 196 * 202 * Note: this method also skiis responsible for allowing users who can moderate,to197 * Note: this method also is responsible for allowing users who can moderate to 203 198 * never have their posts marked as spam. This is because they are "trusted" 204 199 * users. However, their posts are still sent to Akismet to be checked. … … 775 770 // Bail if the response is an error 776 771 if ( is_wp_error( $response ) ) { 777 return '';772 return array( '', '' ); 778 773 } 779 774
Note: See TracChangeset
for help on using the changeset viewer.