$value ) { if ( !in_array( $option, array( '_wpnonce', '_wp_http_referer', 'action', 'submit' ) ) ) { $option = trim( $option ); $value = is_array( $value ) ? $value : trim( $value ); $value = stripslashes_deep( $value ); if ( $value ) { bb_update_option( $option, $value ); } else { bb_delete_option( $option ); } } } $goback = add_query_arg( 'updated', 'true', wp_get_referer() ); bb_safe_redirect( $goback ); exit; } if ( !empty($_GET['updated']) ) { bb_admin_notice( __( 'Settings saved.' ) ); } $general_options = array( 'edit_lock' => array( 'title' => __( 'Lock post editing after' ), 'class' => 'short', 'after' => __( 'minutes' ), 'note' => __( 'A user can edit a post for this many minutes after submitting.' ), ), 'throttle_time' => array( 'title' => __( 'Throttle time' ), 'class' => 'short', 'after' => __( 'seconds' ), 'note' => __( 'Users must wait this many seconds between posts. By default, moderators, administrators and keymasters are not throttled.' ) ) ); $remote_options = array( 'enable_xmlrpc' => array( 'title' => __( 'XML-RPC' ), 'type' => 'checkbox', 'options' => array( 1 => __( 'Enable the bbPress XML-RPC publishing protocol.' ) ) ) ); $bb_admin_body_class = ' bb-admin-settings'; bb_get_admin_header(); ?>