Skip to content

Commit

Permalink
Avoid using elt.remove because it's unavailable in ie11 (#8598)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored Aug 6, 2018
1 parent 22ba56f commit 4fd5c20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ function gutenberg_replace_default_add_new_button() {
newbutton += '<a href="' + classicUrl + '"><?php echo esc_js( __( 'Classic Editor', 'gutenberg' ) ); ?></a></span></span><span class="page-title-action" style="display:none;"></span>';

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' );
Expand Down

0 comments on commit 4fd5c20

Please sign in to comment.