Skip to content

Instantly share code, notes, and snippets.

@Pross Pross/wpcli.diff
Created Apr 11, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.