Skip to content

Commit e6029bb

Browse files
committed
Update action name
1 parent 4d7a459 commit e6029bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/wp-includes/template.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,8 @@ static function ( int $level, string $message, ?string $file = null, ?int $line
980980
$level = E_USER_ERROR;
981981
}
982982

983+
// TODO: Append to the message that this error happened while doing wp_template_enhancement_output_buffer filters or the wp_finalized_template_enhancement_output_buffer action?
984+
983985
if ( error_reporting() & $level ) {
984986
$error_log[] = compact( 'level', 'message', 'file', 'line' );
985987
}
@@ -1078,9 +1080,9 @@ static function ( int $level, string $message, ?string $file = null, ?int $line
10781080
// Emit to the error log.
10791081
trigger_error(
10801082
sprintf(
1081-
/* translators: %s is wp_send_late_headers */
1083+
/* translators: %s is wp_finalized_template_enhancement_output_buffer */
10821084
__( 'Exception thrown during %s action: ' ) . $exception->getMessage(),
1083-
'wp_send_late_headers'
1085+
'wp_finalized_template_enhancement_output_buffer'
10841086
),
10851087
E_USER_WARNING
10861088
);

0 commit comments

Comments
 (0)