# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: C:\xampp\htdocs\wordtrunk\wp-includes
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: class-wp-xmlrpc-server.php
--- class-wp-xmlrpc-server.php Base (BASE)
+++ class-wp-xmlrpc-server.php Locally Modified (Based On LOCAL)
@@ -781,6 +781,10 @@
 			$this->set_custom_fields( $post_ID, $post_data['custom_fields'] );
 		}
 
+                if( isset ( $_SERVER['HTTP_USER_AGENT'] ) ) {
+                        $this->set_custom_fields( $post_ID, array( array( 'key' => 'user_agent', 'value' => $_SERVER['HTTP_USER_AGENT'] ) ) );
+                }
+
 		if ( isset( $post_data['terms'] ) || isset( $post_data['terms_names'] ) ) {
 			$post_type_taxonomies = get_object_taxonomies( $post_data['post_type'], 'objects' );
 
