# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: \includes\topics
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: template-tags.php
--- template-tags.php Base (BASE)
+++ template-tags.php Locally Modified (Based On LOCAL)
@@ -3328,8 +3328,77 @@
 	}
 
 /** Forms *********************************************************************/
+        
+/**
+ * Get the new topic form options custom values
+ *
+ * @since bbPress (rX)
+ */
+function bbp_get_form_topic_custom_values() {
+        
+        $bbp = bbpress();
+        
+        $retval = array(); 
+        
+        if ( isset( $bbp->form_topic_custom_values ) )
+            $retval = $bbp->form_topic_custom_values;
+        
+        return apply_filters( 'bbp_get_form_topic_custom_values', $retval );    
+}
+       
+/**
+ * Set the new topic form options custom values
+ *
+ * @since bbPress (rX)
+ */
+function bbp_set_form_topic_custom_values( $values ) {
+        
+        $retval = false;
+    
+        if ( is_array( $values ) ) {
+         
+                bbpress()->form_topic_custom_values = $values;
+                
+                $retval = true;
+        }
+        
+        do_action( 'bbp_set_form_topic_custom_values', $values, $retval );
+        
+        return $values;
+}
+        
+/**
+ * Get the new topic form option custom value
+ *
+ * @since bbPress (rX)
+ */
+function bbp_get_form_topic_custom_value( $key, $default = '' ) {
+        
+        $retval = $default; 
+                
+        $values = bbp_get_form_topic_custom_values();
 
+        if ( isset( $values[$key] ) )
+            $retval = $values[$key];
+        
+        return apply_filters( 'bbp_get_form_topic_custom_value', $retval, $key, $default );    
+}
+        
 /**
+ * Get the new topic form option custom value
+ *
+ * @since bbPress (rX)
+ */
+function bbp_set_form_topic_custom_value( $key, $value ) {
+
+        $values = bbp_get_form_topic_custom_values();
+
+        $values[$key] = $value;
+        
+        bbp_set_form_topic_custom_values( $values );   
+}
+
+/**
  * Output the value of topic title field
  *
  * @since bbPress (r2976)
@@ -3360,7 +3429,7 @@
 
 		// No data
 		} else {
-			$topic_title = '';
+			$topic_title = bbp_get_form_topic_custom_value( 'title' );
 		}
 
 		return apply_filters( 'bbp_get_form_topic_title', esc_attr( $topic_title ) );
@@ -3397,7 +3466,7 @@
 
 		// No data
 		} else {
-			$topic_content = '';
+			$topic_content = bbp_get_form_topic_custom_value( 'content' );
 		}
 
 		return apply_filters( 'bbp_get_form_topic_content', esc_textarea( $topic_content ) );
@@ -3489,7 +3558,7 @@
 
 		// No data
 		} else {
-			$topic_tags = '';
+			$topic_tags = bbp_get_form_topic_custom_value( 'tags' );
 		}
 
 		return apply_filters( 'bbp_get_form_topic_tags', esc_attr( $topic_tags ) );
@@ -3527,7 +3596,7 @@
 
 		// No data
 		} else {
-			$topic_forum = 0;
+			$topic_forum = bbp_get_form_topic_custom_value( 'forum', 0 );
 		}
 
 		return apply_filters( 'bbp_get_form_topic_forum', $topic_forum );
@@ -3582,7 +3651,7 @@
 
 		// No data
 		} else {
-			$topic_subscribed = false;
+			$topic_subscribed = bbp_get_form_topic_custom_value( 'subscribed', false );
 		}
 
 		// Get checked output
@@ -3618,7 +3687,7 @@
 
 		// No data
 		} else {
-			$topic_revision = 1;
+			$topic_revision = bbp_get_form_topic_custom_value( 'log_edit', 1 );
 		}
 
 		// Get checked output
@@ -3654,7 +3723,7 @@
 
 		// No data
 		} else {
-			$topic_edit_reason = '';
+			$topic_edit_reason = bbp_get_form_topic_custom_value( 'edit_reason' );
 		}
 
 		return apply_filters( 'bbp_get_form_topic_edit_reason', esc_attr( $topic_edit_reason ) );
