wp-includes/class-wpdb.php:2987For string fields, records the maximum string length that field can safely save.
$dataarray$valuemixed
$formatstring
$charsetstring|false
$tablestringarray|false...$0array
$valuemixed
$formatstring
$charsetstring|false
$lengtharray|false
$typestring
$lengthint
protected function process_field_lengths( $data, $table ) { foreach ( $data as $field => $value ) { if ( '%d' === $value['format'] || '%f' === $value['format'] ) { /* * We can skip this field if we know it isn't a string. * This checks %d/%f versus ! %s because its sprintf() could take more. */ $value['length'] = false; } else { $value['length'] = $this->get_col_length( $table, $field ); if ( is_wp_error( $value['length'] ) ) { return false; } } $data[ $field ] = $value; } return $data; }Introduced in 4.2.1. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/class-wpdb.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.