Skip to content

Commit

Permalink
fix: remove dives from the elements list
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryC05 committed May 22, 2023
1 parent 4b58063 commit 35ea480
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inc/class-release-publish.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ public function test_scheduled_event( $id ) {
$post = get_post( $id );

$post_content = $post->post_content;
$post_content = preg_replace( '/<\/?div.*?>/m', '', $post_content );

$content = str_replace( "\n\n", "\n", preg_replace( '/<!--.*-->/m', '', $post_content ) );

Expand Down

0 comments on commit 35ea480

Please sign in to comment.