Please do not leave the comment area blank.
hi, in ajax.php of bp-default there is a statement
if ( empty( $_POST['content'] ) ) exit( '-1<div id="message" class="error"><p>' . __( 'Please do not leave the comment area blank.', 'buddypress' ) . '</p></div>' );
Is there a way to modify it from functions.php, so that it would or wouldn’t check $_POST[‘content’] under specific parent div only?
Basically, idea is to use additional bp_has_activities loop on a page of activity directory and check main loop only – this statement is a last barrier.
- The topic ‘Please do not leave the comment area blank.’ is closed to new replies.