wp_get_theme_error() – Gets the error that was recorded for a paused theme.
You appear to be a bot. Output may be restricted
Description
Gets the error that was recorded for a paused theme.
Usage
$array|false = wp_get_theme_error( $theme );
Parameters
- $theme
- ( string ) required – Path to the theme directory relative to the themes directory.
Returns
array|false Array of error information as it was returned by `error_get_last()`, or false if none was recorded.
Source
File name: wordpress/wp-admin/includes/theme.php
Lines:
1 to 11 of 11
function wp_get_theme_error( $theme ) { if ( ! isset( $GLOBALS['_paused_themes'] ) ) { return false; } if ( ! array_key_exists( $theme, $GLOBALS['_paused_themes'] ) ) { return false; } return $GLOBALS['_paused_themes'][ $theme ]; }