Changeset 49489 for trunk/src/wp-includes/error-protection.php
- Timestamp:
- 11/03/2020 05:34:20 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/error-protection.php
r48102 r49489 112 112 * Filters whether the fatal error handler is enabled. 113 113 * 114 * **Important:** This filter runs before it can be used by plugins. It cannot 115 * be used by plugins, mu-plugins, or themes. To use this filter you must define 116 * a `$wp_filter` global before WordPress loads, usually in `wp-config.php`. 117 * 118 * Example: 119 * 120 * $GLOBALS['wp_filter'] = array( 121 * 'wp_fatal_error_handler_enabled' => array( 122 * 10 => array( 123 * array( 124 * 'accepted_args' => 0, 125 * 'function' => function() { 126 * return false; 127 * }, 128 * ), 129 * ), 130 * ), 131 * ); 132 * 133 * Alternatively you can use the `WP_DISABLE_FATAL_ERROR_HANDLER` constant. 134 * 114 135 * @since 5.2.0 115 136 *
Note: See TracChangeset
for help on using the changeset viewer.