Skip to content

Commit

Permalink
Move Settings page to src/UI/
Browse files Browse the repository at this point in the history
  • Loading branch information
acicovic committed Oct 18, 2024
1 parent 03ad5a6 commit c761db0
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"files": [
"build/",
"src/",
"views/",
"uninstall.php",
"wp-parsely.php"
],
Expand Down
1 change: 0 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ parameters:
paths:
- bin/
- src/
- views/
- tests/
- wp-parsely.php
- uninstall.php
Expand Down
1 change: 0 additions & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
array(
__DIR__ . '/src',
__DIR__ . '/tests',
__DIR__ . '/views',
__DIR__ . '/uninstall.php',
__DIR__ . '/wp-parsely.php',
)
Expand Down
2 changes: 1 addition & 1 deletion src/UI/class-settings-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public function display_settings(): void {
wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'wp-parsely' ) );
}

include_once plugin_dir_path( PARSELY_FILE ) . 'views/parsely-settings.php';
include_once plugin_dir_path( PARSELY_FILE ) . 'src/UI/settings-page.php';
}

/**
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/Integration/UI/SettingsPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ function () use ( $badge_options ) {
$GLOBALS['parsely_settings_page'] = $settings_page;

$settings_page->initialize_settings();
include plugin_dir_path( PARSELY_FILE ) . 'views/parsely-settings.php';
include plugin_dir_path( PARSELY_FILE ) . 'src/UI/settings-page.php';
self::expectOutputContains( $expected_html );
}

Expand Down

0 comments on commit c761db0

Please sign in to comment.