Fix alignment

This commit is contained in:
Gerhard 2019-04-18 12:22:22 +02:00
parent 6026d2b9bf
commit c601d20b57
1 changed files with 2 additions and 2 deletions

View File

@ -606,8 +606,8 @@ function wc_price( $price, $args = array() ) {
* @return int
*/
function wc_let_to_num( $size ) {
$l = substr( $size, -1 );
$ret = (int) substr( $size, 0, -1 );
$l = substr( $size, -1 );
$ret = (int) substr( $size, 0, -1 );
switch ( strtoupper( $l ) ) {
case 'P':
$ret *= 1024;