$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.' ) . '' ); $reading_options = array( 'page_topics' => array( 'title' => __( 'Items per page' ), 'class' => 'short', 'note' => __( 'Number of topics, posts or tags to show per page.' ) ), 'name_link_profile' => array( 'title' => __( 'Link name to' ), 'type' => 'radio', 'options' => array( 0 => __( 'Website' ), 1 => __( 'Profile' ) ), 'note' => __( 'What should the user\'s name link to on the topic page? The user\'s title would automatically get linked to the option you don\'t choose. By default, the user\'s name is linked to his/her website.' ) ) ); $bb_admin_body_class = ' bb-admin-settings'; bb_get_admin_header(); ?>