Changeset 49193 for trunk/src/wp-includes/functions.php
- Timestamp:
- 10/18/2020 05:25:10 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r49144 r49193 468 468 469 469 foreach ( $quant as $unit => $mag ) { 470 if ( doubleval( $bytes )>= $mag ) {470 if ( (float) $bytes >= $mag ) { 471 471 return number_format_i18n( $bytes / $mag, $decimals ) . ' ' . $unit; 472 472 } … … 3432 3432 wp_list_pluck( $parsed_args['additional_errors'], 'message' ) 3433 3433 ); 3434 $message = "<ul>\n\t\t<li>" . join( "</li>\n\t\t<li>", $message ) . "</li>\n\t</ul>";3434 $message = "<ul>\n\t\t<li>" . implode( "</li>\n\t\t<li>", $message ) . "</li>\n\t</ul>"; 3435 3435 } 3436 3436 … … 5881 5881 5882 5882 // Build the value. 5883 $value = join( '/', $value );5883 $value = implode( '/', $value ); 5884 5884 $selected = ''; 5885 5885 if ( $value === $selected_zone ) { … … 5982 5982 $structure[] = '</optgroup>'; 5983 5983 5984 return join( "\n", $structure );5984 return implode( "\n", $structure ); 5985 5985 } 5986 5986 … … 6420 6420 } 6421 6421 if ( $pretty ) { 6422 return join( ', ', array_reverse( $caller ) );6422 return implode( ', ', array_reverse( $caller ) ); 6423 6423 } else { 6424 6424 return $caller;
Note: See TracChangeset
for help on using the changeset viewer.