Opened 9 years ago
Closed 9 months ago
#42007 closed defect (bug) (fixed)
rpc.pingomatic.com still using HTTP
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.8.2 | Priority: | normal |
| Severity: | normal | Version: | 4.9 |
| Component: | Pings/Trackbacks | Keywords: | |
| Focuses: | administration | Cc: |
Description (last modified by )
It looks like rpc.pingomatic.com still doesn't support https. I would like to see it support HTTPS, and then have WordPress default to using https for it.
Attachments (1)
Change History (26)
This ticket was mentioned in PR #3046 on WordPress/wordpress-develop by sabernhardt.
4 years ago
#1
- Keywords has-patch added
This ticket was mentioned in PR #3046 on WordPress/wordpress-develop by sabernhardt.
4 years ago
#2
#3
follow-up:
↓ 5
@
4 years ago
- Description modified (diff)
Thanks for the report and sorry for the long delay!
The rpc.pingomatic.com subdomain still does not seem to support HTTPS, but I made a patch to update the schema for new sites if the subdomain gets SSL.
All unit tests passed with only the schema.php change. I also wanted to update the unit test to check both HTTP and HTTPS, and (only) the 7.0-multisite test failed. The failure notice mentions a timeout. (I had planned to try a pull request on my fork first. :facepalm:)
When this is completed, the Update Services support article will need updating (both the screenshot and the list).
#5
in reply to:
↑ 3
@
14 months ago
My branch is updated, and all tests passed.
I also wanted to update the unit test to check both HTTP and HTTPS
I did not explain why the unit test checks both, but I think it was because existing sites would still have the HTTP URL.
#6
@
10 months ago
HTTPS is supported now on rpc.pingomatic.com, so we can update the default setting if we haven't already.
#7
@
10 months ago
- Milestone changed from Awaiting Review to 6.9
A commit probably could be backported too, but I'll add this to 6.9 for now.
@peterwilsoncc commented on PR #3046:
10 months ago
#9
Do you think it's worth updating to https in the sanitize_option() function?
The existing code for ping_sites would be replaced with something along hte lines of:
`php
case 'ping_sites':
$value = explode( "\n", $value );
$value = array_map(
function ( $url ) {
$url = trim( $url );
$url = sanitize_url( $url );
if ( str_ends_with( $url, ':rpc.pingomatic.com/' ) ) {
$url = set_url_scheme( $url, 'https' );
}
return $url;
},
$value
);
$value = array_filter( $value );
$value = implode( "\n", $value );
break;
@sabernhardt commented on PR #3046:
10 months ago
#10
Do you think it's worth updating to https in the
sanitize_option()function?
I don't think _I_ should make a more elaborate patch, but I have a few questions and comments.
- Does the
sanitize_option()replacement only run when updating some option in the Writing Settings oroptions.php? - Noticing the auto-corrected Update Services field could be a _little_ awkward after the user saves changes to an unrelated option such as the default post category or format.
- I like how the example uses
array_mapandarray_filteronly once each. - Apparently
sanitize_url( trim( $url ) )can be on one line (WP_Customize_Manager::_sanitize_external_header_video()has it that way). - The list of ping services in documentation does not have trailing slash. Could this account for that possibility?
@peterwilsoncc commented on PR #3046:
10 months ago
#11
- Does the
sanitize_option()replacement only run when updating some option in the Writing Settings oroptions.php?- Noticing the auto-corrected Update Services field could be a little awkward after the user saves changes to an unrelated option such as the default post category or format.
I was having a dumb moment and thought sanitize_option ran when getting the options, but I must have been thinking of another filter. You're right, it would be confusing.
- The list of ping services in documentation does not have trailing slash. Could this account for that possibility?
I think for the root directory of a domain it's implied.
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
10 months ago
This ticket was mentioned in PR #9085 on WordPress/wordpress-develop by @peterwilsoncc.
10 months ago
#14
- Keywords has-unit-tests added
- Update schema.php for new sites, and try updating the unit test. - props @sabernhardt
- Add upgrade routine to set the scheme to
https
Questions:
- Should
sanitize_optionbe updated to force HTTPS? I decided against it to allow for site owners choosing not to. But I might be wrong. - The upgrade services documentation includes alternative providers.
rpc.twingly.comnow uses HTTPS too, should that be upgraded too?
@peterwilsoncc commented on PR #3046:
10 months ago
#15
I wonder if an upgrade routine would make sense for existing sites
I've created an alternative PR with an upgrade routine, see https://github.com/WordPress/wordpress-develop/pull/9085
10 months ago
#16
Should sanitize_option be updated to force HTTPS? I decided against it to allow for site owners choosing not to. But I might be wrong.
I agree with your decision here. It's also not necessary as long as the DB upgrade runs.
The upgrade services documentation includes alternative providers. rpc.twingly.com now uses HTTPS too, should that be upgraded too?
I like this idea and it seems like it's not something that needs to wait on this change. PR submitted for that update https://github.com/WordPress/Advanced-administration-handbook/pull/401
This ticket was mentioned in Slack in #core by zunaid321. View the logs.
9 months ago
#18
@
9 months ago
- Owner set to jorbin
- Resolution set to fixed
- Status changed from new to closed
In 60421:
#19
@
9 months ago
- Keywords fixed-major dev-feedback added
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for second committer signoff on merge to 6.8 branch
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
9 months ago
#24
follow-up:
↓ 25
@
9 months ago
- Keywords has-patch has-unit-tests fixed-major dev-reviewed removed
- Resolution fixed deleted
- Status changed from closed to reopened
#25
in reply to:
↑ 24
@
9 months ago
- Resolution set to fixed
- Status changed from reopened to closed
Replying to peterwilsoncc:
There's a mismatch of version numbers in version.php and the upgrade routines following r60421 and r60422 -- I'll get a fix in in the next few hours.
Not naming names, but someone was looking at the WP version in the built version of the code base rather than the wp-dev version of the code base 🤦♂️
Update Services field on Writing Settings screen