Skip to content

Commit 0d580b8

Browse files
committed
Break up sprintf() into multiple lines
1 parent da8e3f6 commit 0d580b8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/wp-includes/template.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,15 @@ static function ( int $level, string $message, ?string $file = null, ?int $line
10971097
// Adapted from PHP internals: <https://github.com/php/php-src/blob/a979e9f897a90a580e883b1f39ce5673686ffc67/main/main.c#L1492>.
10981098
$format = "%s\n%s: %s in %s on line %s\n%s";
10991099
}
1100-
$filtered_output .= sprintf( $format, ini_get( 'error_prepend_string' ), $type, $error['message'], $error['file'], $error['line'], ini_get( 'error_append_string' ) );
1100+
$filtered_output .= sprintf(
1101+
$format,
1102+
ini_get( 'error_prepend_string' ),
1103+
$type,
1104+
$error['message'],
1105+
$error['file'],
1106+
$error['line'],
1107+
ini_get( 'error_append_string' )
1108+
);
11011109
}
11021110

11031111
ini_set( 'display_errors', $original_display_errors );

0 commit comments

Comments
 (0)