Skip to content

Commit

Permalink
Fix invalid feed issue with white space #856
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Jan 19, 2024
1 parent 8e3c9c5 commit 0bc0b68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/admin/feedzy-rss-feeds-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,9 @@ public function save_feedzy_post_type_meta( $post_id, $post ) {

$category_meta['feedzy_category_feed'] = array();
if ( isset( $_POST['feedzy_category_feed'] ) ) {
$category_meta['feedzy_category_feed'] = wp_strip_all_tags( wp_unslash( $_POST['feedzy_category_feed'] ) );
$feedzy_category_feed = wp_strip_all_tags( wp_unslash( $_POST['feedzy_category_feed'] ) );
$feedzy_category_feed = preg_replace( '/\s*,\s*/', ',', $feedzy_category_feed );
$category_meta['feedzy_category_feed'] = $feedzy_category_feed;
}
if ( $post->post_type === 'revision' ) {
return true;
Expand Down

0 comments on commit 0bc0b68

Please sign in to comment.