From d57d2a8acab579a8d75bfdf7ddff59846de24745 Mon Sep 17 00:00:00 2001 From: Andrew Shell Date: Tue, 7 Apr 2026 19:39:46 -0500 Subject: [PATCH] Update stable version and tested up to --- .wp-env.json | 3 ++- .wp-env.test.json | 3 ++- rsscloud/readme.txt | 7 +++++-- rsscloud/rsscloud.php | 6 +++--- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.wp-env.json b/.wp-env.json index fce073a..f326ef8 100644 --- a/.wp-env.json +++ b/.wp-env.json @@ -1,7 +1,8 @@ { "$schema": "https://schemas.wp.org/trunk/wp-env.json", "testsEnvironment": false, - "core": "WordPress/WordPress#6.3", + "port": 8888, + "core": "WordPress/WordPress#7.0-branch", "plugins": ["./rsscloud"], "phpVersion": "7.4", "phpmyadminPort": 9000, diff --git a/.wp-env.test.json b/.wp-env.test.json index d71f7d1..da17cbb 100644 --- a/.wp-env.test.json +++ b/.wp-env.test.json @@ -2,8 +2,9 @@ "$schema": "https://schemas.wp.org/trunk/wp-env.json", "testsEnvironment": false, "port": 8889, - "core": "WordPress/WordPress#6.3", + "core": "WordPress/WordPress#7.0-branch", "plugins": ["./rsscloud"], + "phpVersion": "7.4", "config": { "WP_DEBUG": false, "SCRIPT_DEBUG": false diff --git a/rsscloud/readme.txt b/rsscloud/readme.txt index f3630ef..74a28f5 100644 --- a/rsscloud/readme.txt +++ b/rsscloud/readme.txt @@ -2,8 +2,8 @@ Contributors: josephscott, automattic Tags: rss Requires at least: 2.8 -Tested up to: 6.9 -Stable tag: 0.5.0 +Tested up to: 7.0 +Stable tag: 0.5.1 License: GPL-2.0-or-later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -15,6 +15,9 @@ Adds RSSCloud ( http://rsscloud.co/ ) capabilities to your RSS feed. == Changelog == += 0.5.1 = +* Fix loose comparisons to use strict equality operators per WordPress coding standards + = 0.5.0 = * Updates to support PHP 8+ * Check for http scheme in the $notify_url, add it if missing diff --git a/rsscloud/rsscloud.php b/rsscloud/rsscloud.php index b812ff6..be8e0bd 100644 --- a/rsscloud/rsscloud.php +++ b/rsscloud/rsscloud.php @@ -3,7 +3,7 @@ Plugin Name: RSS Cloud Plugin URI: Description: Ping RSS Cloud servers -Version: 0.5.0 +Version: 0.5.1 Author: Joseph Scott Author URI: http://josephscott.org/ License: GPL-2.0-or-later @@ -17,7 +17,7 @@ // define( 'RSSCLOUD_NOTIFICATIONS_INSTANT', true ); if ( ! defined( 'RSSCLOUD_USER_AGENT' ) ) { - define( 'RSSCLOUD_USER_AGENT', 'WordPress/RSSCloud 0.5.0' ); + define( 'RSSCLOUD_USER_AGENT', 'WordPress/RSSCloud 0.5.1' ); } if ( ! defined( 'RSSCLOUD_MAX_FAILURES' ) ) { @@ -79,7 +79,7 @@ function rsscloud_add_rss_cloud_element() { $cloud = parse_url( get_option( 'home' ) . '/?rsscloud=notify' ); - $cloud['port'] = (int) $cloud['port']; + $cloud['port'] = isset( $cloud['port'] ) ? (int) $cloud['port'] : 0; if ( empty( $cloud['port'] ) ) { $cloud['port'] = 80; }