Changeset 56707
- Timestamp:
- 09/26/2023 12:36:50 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r56705 r56707 5989 5989 * @param string $function_name The function that triggered the error. 5990 5990 * @param string $message The message explaining the error. 5991 * The message can contain allowed HTML 'a' (with href), 'code', 5992 * 'br', 'em', and 'strong' tags and http or https protocols. 5993 * If it contains other HTML tags or protocols, the message should be escaped 5994 * before passing to this function to avoid being stripped {@see wp_kses()}. 5991 5995 * @param int $error_level Optional. The designated error type for this error. 5992 5996 * Only works with E_USER family of constants. Default E_USER_NOTICE. … … 6016 6020 } 6017 6021 6018 /* 6019 * If the message appears in the browser, then it needs to be escaped. 6020 * Note the warning in the `trigger_error()` PHP manual. 6021 * @link https://www.php.net/manual/en/function.trigger-error.php 6022 */ 6023 $message = esc_html( $message ); 6022 $message = wp_kses( 6023 $message, 6024 array( 6025 'a' => array( 'href' ), 6026 'br', 6027 'code', 6028 'em', 6029 'strong', 6030 ), 6031 array( 'http', 'https' ) 6032 ); 6024 6033 6025 6034 trigger_error( $message, $error_level );
Note: See TracChangeset
for help on using the changeset viewer.