From 0776427bef6709850f7f1cd951240ed061705da4 Mon Sep 17 00:00:00 2001 From: Shreyas Ikhar Date: Mon, 21 Nov 2022 15:33:25 +0530 Subject: [PATCH] Enhanced code as per phpcs checks --- source.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source.php b/source.php index 9cff515..0a175a4 100644 --- a/source.php +++ b/source.php @@ -1094,7 +1094,9 @@ function rtsocial_plugin_redirect() { // Makes sure the plugin is defined before trying to use it. if ( ! is_plugin_active_for_network( 'rtsocial/source.php' ) ) { // Plugin is activated. - wp_safe_redirect( admin_url( 'options-general.php?page=rtsocial-options&rtnonce=' . wp_create_nonce( 'rtnonce' ) ) ); + if ( wp_safe_redirect( admin_url( 'options-general.php?page=rtsocial-options&rtnonce=' . wp_create_nonce( 'rtnonce' ) ) ) ) { + exit(); + } } } } @@ -1179,7 +1181,7 @@ function rtsocial_get_feeds( $feed_url = 'https://rtcamp.com/blog/' ) { foreach ( $rss_items as $item ) { ?>
  • - get_date( 'j F Y | g:i a' ) ); ?>'>get_title() ); ?> + get_date( 'j F Y | g:i a' ) ); ?>'>get_title() ); ?>