zaus / forms-3rdparty-xpost

Converts external submission from [Forms: 3rdparty Integration](http://wordpress.org/plugins/forms-3rdparty-integration/) plugin to XML post; optionally can add custom headers (to allow SOAP submissions).
4 stars 2 forks source link

Properly allow per-service usage #3

Closed zaus closed 9 years ago

zaus commented 9 years ago

Originally reported on root plugin https://github.com/zaus/forms-3rdparty-integration/issues/32

See fix (?) suggestion -- https://github.com/zaus/forms-3rdparty-integration/issues/32#issuecomment-67473552

Move the "as xml" check to beginning of post_args hook so it skips processing args entirely unless checked.

if( ! isset($service[self::PARAM_ASXML]) ||  'true' != $service[self::PARAM_ASXML]) return $args;
zaus commented 9 years ago

Another problem is that it applies a default post wrapper for some reason -- it should only apply the wrapper if one is specified; this will let you use the plugin just for the other features.

zaus commented 9 years ago

I think this is fixed? Gotta stop working on stuff so late...