From 4fd5c20af4a8a46c92048574e363b07977aa0f3f Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Mon, 6 Aug 2018 16:30:59 +0100 Subject: [PATCH] Avoid using elt.remove because it's unavailable in ie11 (#8598) --- gutenberg.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gutenberg.php b/gutenberg.php index 2515ffcd6cb947..69d55d0bb22f15 100644 --- a/gutenberg.php +++ b/gutenberg.php @@ -382,7 +382,7 @@ function gutenberg_replace_default_add_new_button() { newbutton += ''; button.insertAdjacentHTML( 'afterend', newbutton ); - button.remove(); + button.parentNode.removeChild( button ); var expander = document.getElementById( 'split-page-title-action' ).getElementsByClassName( 'expander' ).item( 0 ); var dropdown = expander.parentNode.querySelector( '.dropdown' );