Skip to content

Commit

Permalink
fix: prevent duplicate HTML elements in metabox [Yoast#22051]
Browse files Browse the repository at this point in the history
  • Loading branch information
dilipbheda committed Feb 19, 2025
1 parent 93db049 commit b0edcc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion admin/metabox/class-metabox-section-react.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ public function display_content() {
esc_attr( $this->name )
);
echo wp_kses_post( $this->content );
echo '<div id="wpseo-metabox-root" class="wpseo-metabox-root"></div>';
if ( 'content' === $this->name ) {
echo '<div id="wpseo-metabox-root" class="wpseo-metabox-root"></div>';
}
echo wp_kses_post( $this->html_after );
echo '</div>';

Expand Down

0 comments on commit b0edcc7

Please sign in to comment.