Coding Standards: Rename $d parameter in various date/time functions to $format for clarity.

See #49222.

git-svn-id: https://develop.svn.wordpress.org/trunk@47287 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2020-02-14 00:05:43 +00:00
parent a41b2d93d3
commit 543944257c
5 changed files with 115 additions and 111 deletions

View File

@@ -638,9 +638,9 @@ function wp_exif_frac2dec( $str ) {
return $str;
}
list( $n, $d ) = explode( '/', $str );
if ( ! empty( $d ) ) {
return $n / $d;
list( $numerator, $denominator ) = explode( '/', $str );
if ( ! empty( $denominator ) ) {
return $numerator / $denominator;
}
return $str;
}