Changeset 52218 for trunk/tests/phpunit/tests/db.php
- Timestamp:
- 11/19/2021 06:58:14 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/db.php
r52176 r52218 1190 1190 */ 1191 1191 private function get_db_error_value_too_long( $errored_fields ) { 1192 if ( str_contains( $errored_fields, ', ' ) ) { 1193 return sprintf( 1194 'WordPress database error: Processing the values for the following fields failed: %s. ' . 1195 'The supplied values may be too long or contain invalid data.', 1196 $errored_fields 1197 ); 1198 } 1192 1199 return sprintf( 1193 'WordPress database error: Processing the value for the following field %sfailed: %s. ' .1200 'WordPress database error: Processing the value for the following field failed: %s. ' . 1194 1201 'The supplied value may be too long or contains invalid data.', 1195 str_contains( $errored_fields, ', ' ) ? 's' : '',1196 1202 $errored_fields 1197 1203 );
Note: See TracChangeset
for help on using the changeset viewer.