mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 18:24:31 +00:00
Coding Standards: Replace alias PHP functions with the canonical names.
Using the canonical function name for PHP functions is strongly recommended, as aliases may be deprecated or removed without (much) warning. This replaces all uses of the following: * `join()` with `implode()` * `sizeof()` with `count()` * `is_writeable()` with `is_writable()` * `doubleval()` with a `(float)` cast In part, this is a follow-up to #47746. Props jrf. See #50767. git-svn-id: https://develop.svn.wordpress.org/trunk@49193 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -28,7 +28,7 @@ function strip_ws( $txt ) {
|
||||
}
|
||||
}
|
||||
|
||||
return trim( join( "\n", $result ) );
|
||||
return trim( implode( "\n", $result ) );
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -275,7 +275,7 @@ function xml_join_atts( $atts ) {
|
||||
foreach ( $atts as $k => $v ) {
|
||||
$a[] = $k . '="' . $v . '"';
|
||||
}
|
||||
return join( ' ', $a );
|
||||
return implode( ' ', $a );
|
||||
}
|
||||
|
||||
function xml_array_dumbdown( &$data ) {
|
||||
@@ -332,7 +332,7 @@ function gen_tests_array( $name, $array ) {
|
||||
$out[] = gen_tests_array( "{$name}[{$index}]", $v );
|
||||
}
|
||||
}
|
||||
return join( "\n", $out ) . "\n";
|
||||
return implode( "\n", $out ) . "\n";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user