Skip to content

Commit

Permalink
Cleanup unused code and add DB_VERSION (#25)
Browse files Browse the repository at this point in the history
Co-authored-by: xxsimoxx <[email protected]>
  • Loading branch information
xxsimoxx and xxsimoxx authored Apr 23, 2024
1 parent 1439c20 commit 35dc606
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
15 changes: 0 additions & 15 deletions classes/PluginUpdate.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,21 +238,6 @@ public function refresh_cp_directory_data() {
$this->get_directory_data(true);
}

// Add a test menu. ToDo: remove
public function create_test_menu() {
if (!current_user_can('manage_options')) {
return;
}
$page = add_menu_page(
'Plugin Update tests',
'Plugin Update tests',
'manage_options',
'classicpress-directory-integration-plugin-update-test',
[$this, 'render_test_page'],
'dashicons-pets'
);
}

// Get all installed ClassicPress plugin
private function get_cp_plugins() {

Expand Down
2 changes: 2 additions & 0 deletions classicpress-directory-integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
die();
}

const DB_VERSION = 1;

// Load non namespaced constants and functions
require_once 'includes/constants.php';
require_once 'includes/functions.php';
Expand Down
1 change: 0 additions & 1 deletion includes/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@
die();
}

// define ('CLASSICPRESS_DIRECTORY_INTEGRATION_VERSION', '0.2.0'); Maybe remove if unused
define ('CLASSICPRESS_DIRECTORY_INTEGRATION_URL', 'https://directory.classicpress.net/wp-json/wp/v2/');

0 comments on commit 35dc606

Please sign in to comment.