Download all files FTP
This commit is contained in:
@@ -111,8 +111,15 @@ if ( wp_using_themes() ) {
|
||||
*
|
||||
* @param string $template The path of the template to include.
|
||||
*/
|
||||
$template = apply_filters( 'template_include', $template );
|
||||
if ( $template ) {
|
||||
$template = apply_filters( 'template_include', $template );
|
||||
$is_stringy = is_string( $template ) || ( is_object( $template ) && method_exists( $template, '__toString' ) );
|
||||
$template = $is_stringy ? realpath( (string) $template ) : null;
|
||||
if (
|
||||
is_string( $template ) &&
|
||||
( str_ends_with( $template, '.php' ) || str_ends_with( $template, '.html' ) ) &&
|
||||
is_file( $template ) &&
|
||||
is_readable( $template )
|
||||
) {
|
||||
/**
|
||||
* Fires immediately before including the template.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user