Skip to content

Commit

Permalink
WPINC is now defined
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Mar 2, 2023
1 parent 26de4ca commit 0ff64be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@

/*
* Load the actual index.php file if the assets were already built.
* Note: WPINC is not defined yet, it is defined later in wp-settings.php.
*/
if ( file_exists( ABSPATH . 'wp-includes/js/dist/edit-post.js' ) ) {
if ( file_exists( ABSPATH . WPINC . '/js/dist/edit-post.js' ) ) {
require_once ABSPATH . '_index.php';
return;
}
Expand Down

0 comments on commit 0ff64be

Please sign in to comment.