');
id = tb.find('#edit-hook-id').val();
-
+
$.ajax({type: 'POST',
url:'admin-ajax.php',
data:'action=hookpress_add_fields'
+'&fields='+tb.find('#editfields').val().join()
+'&url='+tb.find('#editurl').val()
+ +'&contenttype='+tb.find('#editcontenttype').val()
+ +'&headers='+tb.find('#editheaders').val()
+'&type='+tb.find('.newtype:checked').attr('id')
+'&hook='+tb.find('#edithook').val()
+'&enabled='+tb.find('#enabled').val()
diff --git a/readme.txt b/readme.txt
index 110dc8d..0213d8a 100644
--- a/readme.txt
+++ b/readme.txt
@@ -39,6 +39,8 @@ If you have a feature request or question, please use the [HookPress support for
HookPress currently makes requests synchronously so can measurably affect performance. I highly recommend using a caching plugin such as [WP-SuperCache](http://ocaoimh.ie/wp-super-cache/) to stem the performance hit. If your filters' results are time-sensitive or dependent on external data sources as well, make sure to set an appropriate cache expiration time.
== Changelog ==
+= 1.15 =
+* Added basic support for JSON webhooks and header based authentication.
= 1.14 =
* Additional security hardening for `test.php`, now no longer bundled as a `.php`
@@ -62,12 +64,12 @@ HookPress currently makes requests synchronously so can measurably affect perfor
* added webhook editing
* Various miscellaneous features: added nonces for security, modularized the code a bit, etc.
= 0.1.8 =
-* Added more filtersÑnow covers basic + comment filters
+* Added more filters, now covers basic + comment filters
* Marking as compatible through 2.9.9, because it should be.
* Added version checking and beta offers to the options screen.
= 0.1.7 =
* Now supports basically all actions. (Still no actions with no arguments.)
-* Added more filter optionsÑnow covers all basic database read filters.
+* Added more filter options, now covers all basic database read filters.
= 0.1.6 =
* Added another batch of actions. (Still no actions with no arguments, though... something to consider.)
* Fixed hooks which referred to the users and links tables.
diff --git a/services.php b/services.php
index 8f6b9c0..c391f03 100644
--- a/services.php
+++ b/services.php
@@ -46,7 +46,9 @@ function hookpress_ajax_add_fields() {
'type'=>$_POST['type'],
'hook'=>$_POST['hook'],
'enabled'=>$_POST['enabled'],
- 'fields'=>split(',',$_POST['fields'])
+ 'contenttype'=>$_POST['contenttype'],
+ 'fields'=>split(',',$_POST['fields']),
+ 'headers'=>split(',',$_POST['headers'])
);
hookpress_update_hook( $id, $edithook );