diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php index d98cb5de33..b0b3c6d768 100644 --- a/wp-admin/includes/theme.php +++ b/wp-admin/includes/theme.php @@ -156,7 +156,7 @@ function get_page_templates( $post = null, $post_type = 'page' ) { * @return string */ function _get_template_edit_filename( $fullpath, $containingfolder ) { - return str_replace( dirname( dirname( $containingfolder ) ), '', $fullpath ); + return str_replace( dirname( $containingfolder, 2 ), '', $fullpath ); } /** diff --git a/wp-admin/maint/repair.php b/wp-admin/maint/repair.php index 554e466d76..1c0f6ffa98 100644 --- a/wp-admin/maint/repair.php +++ b/wp-admin/maint/repair.php @@ -7,7 +7,7 @@ */ define( 'WP_REPAIRING', true ); -require_once dirname( dirname( __DIR__ ) ) . '/wp-load.php'; +require_once dirname( __DIR__, 2 ) . '/wp-load.php'; header( 'Content-Type: text/html; charset=utf-8' ); ?> diff --git a/wp-includes/version.php b/wp-includes/version.php index b38c33e737..74209c6c94 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4-alpha-56551'; +$wp_version = '6.4-alpha-56552'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.