Summery Summery
Determines whether we are currently on an endpoint that should be protected against WSODs.
Syntax Syntax
Return Return
(bool) True if the current endpoint should be protected.
Source Source
File: wp-includes/load.php
// If no active and valid themes exist, skip loading themes. if ( empty( $themes ) ) { add_filter( 'wp_using_themes', '__return_false' ); } } return $themes; } /** * Filters a given list of themes, removing any paused themes from it. * * @since 5.2.0 * * @param string[] $themes Array of absolute theme directory paths. * @return string[] Filtered array of absolute paths to themes, without any paused themes. */ function wp_skip_paused_themes( array $themes ) { $paused_themes = wp_paused_themes()->get_all(); if ( empty( $paused_themes ) ) { return $themes; } foreach ( $themes as $index => $theme ) { $theme = basename( $theme ); if ( array_key_exists( $theme, $paused_themes ) ) { unset( $themes[ $index ] );
Advertisement
Changelog Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |