[Plugin: Gravity Forms – Update Post] Creates a new entry
-
Hello,
I’m using Gravity Forms Update Post to allow front-end editing of posts. If I request a form with a post ID that doesn’t exist (or that I don’t have permissions for), I get an empty form, which is what I would expect. But if I proceed to fill the form out anyway and hit the submit button, the form creates a new posting. I don’t want this form to be able to create new postings, just edit existing ones.
I set the ‘entries’ parameter in the gravityforms-update-post.php file to false as shown below but that doesn’t seem to resolve the issue:
class GFUpdatePost { public $options = array( 'request_id' => 'gform_post_id' ,'post_status' => 'default' ,'capabilities' => array( 'update' => 'author' ,'delete' => 'disable' ) ,'entries' => false );
I also tried this:
class GFUpdatePost { public $options = array( 'request_id' => 'gform_post_id' ,'post_status' => 'default' ,'capabilities' => array( 'update' => 'author' ,'delete' => 'disable' ) ,'entries' => 'false' );
But it didn’t work either. I see a reference in the readme.txt about disabling entries but I don’t quite understand where to add the suggested filter. Any assistance would be much appreciated and if I can get this plugin working the way I need it to, I will promptly follow up with a donation to support the cause.
Thanks,
Tomhttp://wordpress.org/extend/plugins/gravity-forms-update-post/
- The topic ‘[Plugin: Gravity Forms – Update Post] Creates a new entry’ is closed to new replies.