Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #19067, comment 12


Ignore:
Timestamp:
10/27/2011 08:10:24 PM (13 years ago)
Author:
ocean90
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19067, comment 12

    initial v1  
    1 There could be a problem, because the output of both functions is different. {{{size_format}}} adds a space between number and unit.
     1There could be a problem, because the output of both functions is different.
    22
    3 See also this output:
     3{{{size_format}}} adds a space between number and unit and see also this examples:
    44
    55{{{
     
    99var_dump( size_format( 4.23 ) ); // string(4) "4 B "
    1010var_dump( wp_convert_bytes_to_hr( 4.23 ) ); // string(5) "4.23B"
     11
     12var_dump( size_format( 1073741823 ) ); // string(4) "1,024 MB "
     13var_dump( wp_convert_bytes_to_hr( 1073741823 ) ); // string(5) "1023.99999905MB"
    1114}}}