Skip to content

Commit

Permalink
release: fixes
Browse files Browse the repository at this point in the history
- Enhanced security
  • Loading branch information
vytisbulkevicius authored Dec 21, 2023
2 parents b42e235 + a8785d8 commit 44ce2ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/abstract/feedzy-rss-feeds-admin-abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,15 @@ public function feedzy_default_error_notice( $errors, $feed, $feed_url ) {
$final_msg = '';

if ( $show_error ) {
$final_msg = '<div id="message" class="error"><p>' . sprintf( __( 'Sorry, some part of this feed is currently unavailable or does not exist anymore. The detailed error is %s', 'feedzy-rss-feeds' ), '<p style="font-weight: bold">' . $error_msg . '</p>' );
$final_msg = '<div id="message" class="error"><p>' . sprintf( __( 'Sorry, some part of this feed is currently unavailable or does not exist anymore. The detailed error is %s', 'feedzy-rss-feeds' ), '<p style="font-weight: bold">' . wp_strip_all_tags( $error_msg ) . '</p>' );
if ( ! is_admin() ) {
$final_msg .= sprintf( __( '%1$s(Only you are seeing this detailed error because you are the creator of this post. Other users will see the error message as below.)%2$s', 'feedzy-rss-feeds' ), '<small>', '</small>' );
}
$final_msg .= '</p></div>';
} else {
error_log( 'Feedzy RSS Feeds - related feed: ' . print_r( $feed_url, true ) . ' - Error message: ' . $error_msg );
error_log( 'Feedzy RSS Feeds - related feed: ' . print_r( $feed_url, true ) . ' - Error message: ' . wp_strip_all_tags( $error_msg ) );
}
return $final_msg;
return wp_kses_post( $final_msg );
}

/**
Expand Down

0 comments on commit 44ce2ba

Please sign in to comment.