Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary spaces #26

Merged
merged 1 commit into from Aug 3, 2017
Merged

Remove unnecessary spaces #26

merged 1 commit into from Aug 3, 2017

Conversation

zackphilipps
Copy link
Contributor

Related: #14

@zackphilipps
Copy link
Contributor Author

For anyone waiting on this that needs a quick fix, here it is:

// https://github.com/tyxla/Gravity-Forms-Multiple-Form-Instances/pull/26
add_filter(
  'gform_get_form_filter',
  function( $form_string, $form ) {
    $count = 1;
    $form_string = str_replace(
      ' gform_wrapper',
      ' gform_wrapper gform_wrapper_original_id_' . $form['id'],
      $form_string,
      $count
    );
    return $form_string;
  },
  10,
  2
);

@tyxla
Copy link
Owner

tyxla commented Aug 3, 2017

Makes sense to me, looks good too! Thanks for that one, @zackphilipps!

side note for me: will have to fix the tests for PHP7 😞

@tyxla tyxla merged commit 536cb14 into tyxla:master Aug 3, 2017
@tyxla tyxla mentioned this pull request Aug 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants