Skip to content

Commit

Permalink
Merge pull request #1072 from WordPress/enhancement/move-admin-to-inc…
Browse files Browse the repository at this point in the history
…ludes

Move `admin` to `includes` directory
  • Loading branch information
felixarntz authored Mar 21, 2024
2 parents b687c60 + 1059283 commit 84762da
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions load.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ function perflab_cleanup_option() {

// Only load admin integration when in admin.
if ( is_admin() ) {
require_once PERFLAB_PLUGIN_DIR_PATH . 'admin/load.php';
require_once PERFLAB_PLUGIN_DIR_PATH . 'admin/server-timing.php';
require_once PERFLAB_PLUGIN_DIR_PATH . 'admin/plugins.php';
require_once PERFLAB_PLUGIN_DIR_PATH . 'includes/admin/load.php';
require_once PERFLAB_PLUGIN_DIR_PATH . 'includes/admin/server-timing.php';
require_once PERFLAB_PLUGIN_DIR_PATH . 'includes/admin/plugins.php';
}
1 change: 0 additions & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ includes:
parameters:
level: 0
paths:
- admin/
- load.php
- includes/
- plugins/
Expand Down
6 changes: 3 additions & 3 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ static function () use ( $plugin_test_path, $plugin_name ) {
tests_add_filter(
'plugins_loaded',
static function () {
require_once TESTS_PLUGIN_DIR . '/admin/load.php';
require_once TESTS_PLUGIN_DIR . '/admin/server-timing.php';
require_once TESTS_PLUGIN_DIR . '/admin/plugins.php';
require_once TESTS_PLUGIN_DIR . '/includes/admin/load.php';
require_once TESTS_PLUGIN_DIR . '/includes/admin/server-timing.php';
require_once TESTS_PLUGIN_DIR . '/includes/admin/plugins.php';
$module_files = glob( TESTS_PLUGIN_DIR . '/modules/*/*/load.php' );
if ( $module_files ) {
foreach ( $module_files as $module_file ) {
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 84762da

Please sign in to comment.