PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.5.1
Forumax – AI Powered Advanced Community Forum Plugin v2.5.1
2.5.1 2.5.0 2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 trunk 1.0.8 1.1.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 All 31 releases
← All changes | includes/features/bbp-private-replies.php +5 -0 2.5.0 → 2.5.1 View file →
@@ -219,8 +219,13 @@
219 219 if ( empty( $reply_id ) ) {
220 220 $reply_id = bbp_get_reply_id( $reply_id );
221 221 }
222 222
223 + // the_content/the_excerpt run for every post; only replies can be private.
224 + if ( empty( $reply_id ) ) {
225 + return $content;
226 + }
227 +
223 228 if ( $this->is_private( $reply_id ) ) {
224 229 if ( ! $this->can_view_private_reply( $reply_id ) ) {
225 230 $content = '<div class="alert alert-danger">' . esc_html__( 'This reply has been marked as private.', 'forumax' ) . '</div>';
226 231 }