Update plu-redux.php

* Fixed issue #1 — bug that would arise when WP-CLI is not available
* Added Git Updater header
This commit is contained in:
Jason Cosper 2023-05-26 16:55:01 -07:00 committed by GitHub
parent 82cffb82b4
commit 0c16b76f17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,7 @@
* License: GPL-2.0+ * License: GPL-2.0+
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt * License URI: https://www.gnu.org/licenses/gpl-2.0.txt
* Description: Display the last updated date for plugins in the <a href="http://wordpress.org/plugins/">WordPress Plugin Directory</a>. * Description: Display the last updated date for plugins in the <a href="http://wordpress.org/plugins/">WordPress Plugin Directory</a>.
* GitHub Plugin URI: boogah/plu-redux
*/ */
// If this file is called directly, abort. // If this file is called directly, abort.
@ -131,4 +132,6 @@ function plu_redux_last_updated_command() {
$table->display(); $table->display();
} }
if ( class_exists( 'WP_CLI' ) ) {
\WP_CLI::add_command('plu list', 'plu_redux_last_updated_command'); \WP_CLI::add_command('plu list', 'plu_redux_last_updated_command');
}