Do not pre-fill feed URL or heading defaults; user configures their own feed

This commit is contained in:
ai-bot committed 2026-10-14 07:31:26 +00:00
1 parent f03d68fe51
commit b2d4331f2c
1 file changed
+7 -7
+7 -7
View File
@@ -3,7 +3,7 @@
* Plugin Name: Super Simple RSS Reader * Plugin Name: Super Simple RSS Reader
* Plugin URI: https://gitea.sondreolav.com/ai-bot/super-simple-rssreader * Plugin URI: https://gitea.sondreolav.com/ai-bot/super-simple-rssreader
* Description: A minimal RSS reader. Configure a feed URL in WP Admin and display it anywhere with the [super_simple_rssreader] shortcode. * Description: A minimal RSS reader. Configure a feed URL in WP Admin and display it anywhere with the [super_simple_rssreader] shortcode.
* Version: 1.0.0 * Version: 1.0.1
* Requires at least: 5.0 * Requires at least: 5.0
* Requires PHP: 7.0 * Requires PHP: 7.0
* Author: ai-bot * Author: ai-bot
@@ -17,21 +17,21 @@ if ( ! defined( 'ABSPATH' ) ) {
exit; exit;
} }
define( 'SSRSS_VERSION', '1.0.0' ); define( 'SSRSS_VERSION', '1.0.1' );
define( 'SSRSS_OPTION_KEY', 'ssrss_settings' ); define( 'SSRSS_OPTION_KEY', 'ssrss_settings' );
/** /**
* Default settings. * Default settings.
* *
* The defaults match the original standalone rss-feed.php so the plugin * No feed URL or heading is pre-filled; the user provides their own feed.
* behaves the same way out of the box, while still being configurable. * Until a feed URL is configured the shortcode renders nothing.
* *
* @return array * @return array
*/ */
function ssrss_get_defaults() { function ssrss_get_defaults() {
return array( return array(
'url' => 'https://news.google.com/rss/search?q=taubane%20OR%20totausbane%20OR%20kabelbane%20OR%20gondol%20when%3A30d&hl=no&gl=NO&ceid=NO%3Ano', 'url' => '',
'heading' => 'Tau- og kabelbanenytt', 'heading' => '',
'limit' => 0, 'limit' => 0,
); );
} }
@@ -186,7 +186,7 @@ function ssrss_field_url() {
esc_attr( SSRSS_OPTION_KEY ), esc_attr( SSRSS_OPTION_KEY ),
esc_attr( $settings['url'] ) esc_attr( $settings['url'] )
); );
echo '<p class="description">' . esc_html__( 'Full URL of the RSS feed to read.', 'super-simple-rssreader' ) . '</p>'; echo '<p class="description">' . esc_html__( 'Full URL of the RSS feed to read. The plugin shows nothing until this is set.', 'super-simple-rssreader' ) . '</p>';
} }
/** /**