Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save szeidler/c4f8dbc9b2c783debf5b74c70c7cf9c4 to your computer and use it in GitHub Desktop.
Save szeidler/c4f8dbc9b2c783debf5b74c70c7cf9c4 to your computer and use it in GitHub Desktop.
Save buttons are missing in Gutenberg with Gin 8.x-3.0-rc13
diff --git a/includes/form.theme b/includes/form.theme
index 423268e..c92b6c6 100644
--- a/includes/form.theme
+++ b/includes/form.theme
@@ -49,7 +49,6 @@ function gin_form_alter(&$form, $form_state, $form_id) {
*/
function gin_form_after_build(array $form, FormStateInterface $form_state): array {
_gin_form_actions($form['actions'] ?? NULL);
- unset($form['actions']);
unset($form['gin_actions']);
return $form;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment