Skip to content

Commit

Permalink
Merge pull request #25 from hosungs/hosungs-patch-1
Browse files Browse the repository at this point in the history
Fix error message showing even when debugging is set to false
  • Loading branch information
macbookandrew authored Jan 16, 2024
2 parents 9a35b29 + 6022407 commit aea90c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-youtube-live.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function get_youtube_live_content( $request_options ) {
}

// debugging.
if ( get_option( 'youtube_live_settings', 'debugging' ) && is_user_logged_in() ) {
if ( 'true' === $youtube_options['debugging'] && is_user_logged_in() ) {
if ( $youtube_live->getErrorMessage() ) {
$error_message = '<p><strong>WP YouTube Live error:</strong></p>
<ul>';
Expand Down

0 comments on commit aea90c3

Please sign in to comment.