tests/Frameworks/WordPress/Version_4_8/wp-includes/wp-db.php
/**
	 * For string fields, record the maximum string length that field can safely save.
	 *
	 * @since 4.2.1
	 * @access protected
	 *
	 * @param array  $data  As it comes from the wpdb::process_field_charsets() method.
	 * @param string $table Table name.
	 * @return array|false The same array as $data with additional 'length' keys, or false if
	 *                     any of the values were too long for their corresponding field.
	 */
For string fields, record the maximum string length that field can safely save.

@param array  $data  As it comes from the wpdb::process_field_charsets() method.
@param string $table Table name.
@return array|false The same array as $data with additional 'length' keys, or false if
any of the values were too long for their corresponding field.
For string fields record the maximum string length that field can safely save . @param array $data As it comes from the wpdb :: process_field_charsets () method . @param string $table Table name . @return array|false The same array as $data with additional ' length ' keys or false if any of the values were too long for their corresponding field .
protected function process_field_lengths( $data, $table ) {
		foreach ( $data as $field => $value ) {
			if ( '%d' === $value['format'] || '%f' === $value['format'] ) {
				$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;
	}
protected function process_field_lengths ( $ data , $ table ) { foreach ( $ data as $ field => $ value ) { if ( '%d' === $ value [ 'format' ] || '%f' === $ value [ 'format' ] ) { $ 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 ; }
For string fields, record the maximum string length that field can safely save.
For string fields record the maximum string length that field can safely save .
/*
				 * 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.
				 */