WordPress.org

Make WordPress Core

Ticket #44142: 44142.diff

File 44142.diff, 610 bytes (added by kraftbj, 5 weeks ago)

require_once file.php to ensure get_home_path is declared.

  • src/wp-admin/includes/misc.php

     
    202202                return;
    203203        }
    204204
     205        /** Ensure get_home_path is declared. */
     206        require_once( ABSPATH . 'wp-admin/includes/file.php' );
     207
    205208        global $wp_rewrite;
    206209
    207210        $home_path     = get_home_path();
     
    236239                return;
    237240        }
    238241
     242        /** Ensure get_home_path is declared. */
     243        require_once( ABSPATH . 'wp-admin/includes/file.php' );
     244
    239245        global $wp_rewrite;
    240246
    241247        $home_path       = get_home_path();