Created
April 11, 2019 16:56
-
-
Save Pross/e20e5b430956fd21d0ffe140df52be1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From b7f4b3d6aca25bd21495a35e620b642931af0e21 Mon Sep 17 00:00:00 2001 | |
From: Simon Prosser <pross@pross.org.uk> | |
Date: Thu, 11 Apr 2019 17:30:38 +0100 | |
Subject: [PATCH] Fix wp-cli in PHP 5.4 and below. | |
list is a protected function even though we are in a class. | |
--- | |
classes/class-fl-builder-wpcli-command.php | 6 ++++-- | |
1 file changed, 4 insertions(+), 2 deletions(-) | |
diff --git classes/class-fl-builder-wpcli-command.php classes/class-fl-builder-wpcli-command.php | |
index 9d76c908..824d8663 100644 | |
--- classes/class-fl-builder-wpcli-command.php | |
+++ classes/class-fl-builder-wpcli-command.php | |
@@ -280,8 +280,10 @@ class FLThemer_List_WPCLI_Command extends WP_CLI_Command { | |
* | |
* 1. wp beaver themer list | |
* - Returns list of all themer layouts. | |
- */ | |
- public function list( $args, $assoc_args ) { | |
+ * | |
+ * @subcommand list | |
+ */ | |
+ public function themer_list( $args, $assoc_args ) { | |
$this->is_themer(); | |
-- | |
2.20.1 (Apple Git-117) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment