diff --git a/src/index.php b/src/index.php
index bb9757a487..307ac5f446 100644
a
|
b
|
if ( ! defined( 'ABSPATH' ) ) { |
11 | 11 | define( 'ABSPATH', __DIR__ . '/' ); |
12 | 12 | } |
13 | 13 | |
14 | | if ( file_exists( ABSPATH . 'wp-includes/js/dist/edit-post.js' ) ) { |
| 14 | if ( file_exists( ABSPATH . 'wp-includes/assets/script-loader-packages.php' ) ) { |
15 | 15 | require_once ABSPATH . '_index.php'; |
16 | 16 | return; |
17 | 17 | } |
diff --git a/src/wp-admin/index.php b/src/wp-admin/index.php
index 50b7f4046f..1dac4126dd 100644
a
|
b
|
|
6 | 6 | * please refer to wp-admin/_index.php. |
7 | 7 | */ |
8 | 8 | |
9 | | if ( file_exists( __DIR__ . '/../wp-includes/js/dist/edit-post.js' ) ) { |
| 9 | if ( file_exists( __DIR__ . '/../wp-includes/assets/script-loader-packages.php' ) ) { |
10 | 10 | require_once __DIR__ . '/_index.php'; |
11 | 11 | return; |
12 | 12 | } |