Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .wp-env.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
3 changes: 2 additions & 1 deletion .wp-env.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions rsscloud/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions rsscloud/rsscloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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' ) ) {
Expand Down Expand Up @@ -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;
}
Expand Down
Loading