WordPress.org

Make WordPress Core

Ticket #48154: 48154-update-file-check.diff

File 48154-update-file-check.diff, 850 bytes (added by peterwilsoncc, 21 months ago)
  • src/index.php

    diff --git a/src/index.php b/src/index.php
    index bb9757a487..307ac5f446 100644
    a b if ( ! defined( 'ABSPATH' ) ) { 
    1111        define( 'ABSPATH', __DIR__ . '/' );
    1212}
    1313
    14 if ( file_exists( ABSPATH . 'wp-includes/js/dist/edit-post.js' ) ) {
     14if ( file_exists( ABSPATH . 'wp-includes/assets/script-loader-packages.php' ) ) {
    1515        require_once ABSPATH . '_index.php';
    1616        return;
    1717}
  • src/wp-admin/index.php

    diff --git a/src/wp-admin/index.php b/src/wp-admin/index.php
    index 50b7f4046f..1dac4126dd 100644
    a b  
    66 * please refer to wp-admin/_index.php.
    77 */
    88
    9 if ( file_exists( __DIR__ . '/../wp-includes/js/dist/edit-post.js' ) ) {
     9if ( file_exists( __DIR__ . '/../wp-includes/assets/script-loader-packages.php' ) ) {
    1010        require_once __DIR__ . '/_index.php';
    1111        return;
    1212}