From 0daa3ef874137adbcd46c3be0c7ca6ebc30a99af Mon Sep 17 00:00:00 2001 From: Amaan Khan Date: Sun, 17 Dec 2023 18:27:01 +0530 Subject: [PATCH] refactor: resolves phpcs(WordPressVIPMinimum,WordPress-VIP-Go) warnings/errors --- source.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source.php b/source.php index d80209c..7373bf7 100644 --- a/source.php +++ b/source.php @@ -1029,6 +1029,8 @@ function rtsocial_plugin_redirect() { 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' ) ) ); + + exit; // `wp_safe_redirect()` should always be followed by a call to `exit;` } } } @@ -1113,7 +1115,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() ); ?>
  • rawurlencode( get_permalink( $post_id ) ),