Skip to content

Commit e71d6ec

Browse files
committed
Code Quality: Replace is_double() and is_long() aliases.
Replace the two remaining non-vendor occurrences: `is_double()` becomes `is_float()` in the IXR `IXR_Value::calculateType()` method, and `is_long()` becomes `is_int()` in the `ftp_base::SetServer()` method. Behavior is unchanged; the canonical functions are exact equivalents. Developed in WordPress#12192. Follow-up to r62175. Props soean, masteradhoc, westonruter. Fixes #64913. git-svn-id: https://develop.svn.wordpress.org/trunk@62669 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 51a575c commit e71d6ec

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/wp-admin/includes/class-ftp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ function Passive($pasv=NULL) {
278278
}
279279

280280
function SetServer($host, $port=21, $reconnect=true) {
281-
if(!is_long($port)) {
281+
if(!is_int($port)) {
282282
$this->verbose=true;
283283
$this->SendMSG("Incorrect port syntax");
284284
return FALSE;

src/wp-includes/IXR/class-IXR-value.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function calculateType()
4747
if (is_int($this->data)) {
4848
return 'int';
4949
}
50-
if (is_double($this->data)) {
50+
if (is_float($this->data)) {
5151
return 'double';
5252
}
5353

0 commit comments

Comments
 (0)