Skip to content

Commit

Permalink
Merge pull request #717 from GatherPress/gatherpress-develop
Browse files Browse the repository at this point in the history
Remove development CLI script from core plugin.
  • Loading branch information
mauteri authored Jul 1, 2024
2 parents 39bca48 + 83d9e57 commit d04887e
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 151 deletions.
1 change: 0 additions & 1 deletion includes/core/classes/class-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class Cli {
*/
protected function __construct() {
if ( defined( 'WP_CLI' ) && WP_CLI ) {
WP_CLI::add_command( 'gatherpress develop', Develop_Cli::class );
WP_CLI::add_command( 'gatherpress event', Event_Cli::class );
}
}
Expand Down
93 changes: 0 additions & 93 deletions includes/core/classes/commands/class-develop-cli.php

This file was deleted.

2 changes: 1 addition & 1 deletion includes/core/classes/settings/class-credits.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function settings_section( string $page ): void {
*/
protected function credits_page(): void {
// Load credits data.
$credits = include_once sprintf( '%s/includes/data/credits/latest.php', GATHERPRESS_CORE_PATH );
$credits = include_once sprintf( '%s/includes/data/credits.php', GATHERPRESS_CORE_PATH );

// Render the credits page template with data.
Utility::render_template(
Expand Down
File renamed without changes.
53 changes: 0 additions & 53 deletions includes/data/credits/credits.php

This file was deleted.

2 changes: 1 addition & 1 deletion phpcs.ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!-- What to scan -->
<file>.</file>
<exclude-pattern>*.asset.php</exclude-pattern>
<exclude-pattern>/data/credits/latest.php</exclude-pattern>
<exclude-pattern>/data/credits.php</exclude-pattern>
<exclude-pattern>/vendor/</exclude-pattern>
<exclude-pattern>/node_modules/</exclude-pattern>
<exclude-pattern>/wp-core/</exclude-pattern>
Expand Down
4 changes: 2 additions & 2 deletions test/unit/php/class-test-gatherpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Test_GatherPress extends Base {
* @return void
*/
public function test_plugin_version(): void {
$credits = include sprintf( '%s/includes/data/credits/latest.php', GATHERPRESS_CORE_PATH );
$credits = include sprintf( '%s/includes/data/credits.php', GATHERPRESS_CORE_PATH );
$package_json = json_decode(
file_get_contents( // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents
sprintf( '%s/package.json', GATHERPRESS_CORE_PATH )
Expand All @@ -32,7 +32,7 @@ public function test_plugin_version(): void {
$this->assertSame(
$credits['version'],
GATHERPRESS_VERSION,
'Failed to assert version in gatherpress.php matches version in latest.php.'
'Failed to assert version in gatherpress.php matches version in credits.php.'
);

$this->assertSame(
Expand Down

0 comments on commit d04887e

Please sign in to comment.