Skip to content

Commit

Permalink
Revert Gutenberg upstream change
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Sep 25, 2023
1 parent 3840c54 commit 97ad256
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/wp-includes/blocks/categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ function render_block_core_categories( $attributes ) {
function build_dropdown_script_block_core_categories( $dropdown_id ) {
ob_start();
?>
<script>
<script type='text/javascript'>
/* <![CDATA[ */
( function() {
var dropdown = document.getElementById( '<?php echo esc_js( $dropdown_id ); ?>' );
function onCatChange() {
Expand All @@ -80,9 +81,10 @@ function onCatChange() {
}
dropdown.onchange = onCatChange;
})();
/* ]]> */
</script>
<?php
return wp_get_inline_script_tag( str_replace( array( '<script>', '</script>' ), '', ob_get_clean() ) );
return ob_get_clean();
}

/**
Expand Down

0 comments on commit 97ad256

Please sign in to comment.