wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_get_theme_error › WordPress Function

Depuis5.2.0
Dépréciéen/a
wp_get_theme_error ( $theme )
Paramètres:
  • (string) $theme Path to the theme directory relative to the themes directory.
    Requis: Oui
Retourne:
  • (array|false) Array of error information as it was returned by `error_get_last()`, or false if none was recorded.
Défini(e) dans:
Codex:

Gets the error that was recorded for a paused theme.



Source

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 ];
}