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

See #49222.
Built from https://develop.svn.wordpress.org/trunk@47287


git-svn-id: http://core.svn.wordpress.org/trunk@47087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2020-02-14 00:07:07 +00:00
parent f7338b347d
commit 6b2c63031c
6 changed files with 116 additions and 112 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;
}