Changeset 6790 for trunk/src/includes/topics/functions.php
- Timestamp:
- 03/27/2018 07:38:26 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/topics/functions.php
r6784 r6790 2853 2853 } 2854 2854 2855 // Get new status 2856 $status = bbp_get_spam_status_id(); 2857 2855 2858 // Bail if topic is spam 2856 if ( bbp_get_spam_status_id()=== $topic->post_status ) {2859 if ( $status === $topic->post_status ) { 2857 2860 return false; 2858 2861 } … … 2865 2868 2866 2869 // Set post status to spam 2867 $topic->post_status = bbp_get_spam_status_id();2870 $topic->post_status = $status; 2868 2871 2869 2872 // Empty the topic of its tags … … 3156 3159 } 3157 3160 3161 // Get new status 3162 $status = bbp_get_public_status_id(); 3163 3158 3164 // Bail if already approved 3159 if ( bbp_get_pending_status_id() !== $topic->post_status ) {3165 if ( $status === $topic->post_status ) { 3160 3166 return false; 3161 3167 } … … 3196 3202 } 3197 3203 3204 // Get new status 3205 $status = bbp_get_pending_status_id(); 3206 3198 3207 // Bail if already pending 3199 if ( bbp_get_pending_status_id()=== $topic->post_status ) {3208 if ( $status === $topic->post_status ) { 3200 3209 return false; 3201 3210 } … … 3205 3214 3206 3215 // Set pending status 3207 $topic->post_status = bbp_get_pending_status_id();3216 $topic->post_status = $status; 3208 3217 3209 3218 // No revisions
Note: See TracChangeset
for help on using the changeset viewer.