Skip to:
Content

bbPress.org

Ticket #2281: functions.php.patch

File functions.php.patch, 664 bytes (added by MZAWeb, 9 years ago)
  • includes/replies/functions.php

     
    154154                bbp_add_error( 'bbp_reply_topic_id', __( '<strong>ERROR</strong>: Topic ID is missing.', 'bbpress' ) );
    155155        }
    156156
     157        // Check if topic is still open to replies
     158        if ( ! bbp_is_topic_open( $topic_id ) ){
     159                bbp_add_error( 'bbp_reply_topic_closed', __( '<strong>ERROR</strong>: Topic is closed.', 'bbpress' ) );
     160        }
     161
    157162        /** Forum ID **************************************************************/
    158163
    159164        // Handle Forum ID to adjust counts of