From 59036b916c417c19b19eb6edbba5373fcd48d5d1 Mon Sep 17 00:00:00 2001 From: Jeremy Pry Date: Mon, 15 Apr 2019 08:43:11 -0400 Subject: [PATCH] Rename ActionScheduler_wcSystemStatus::print() to render() Also provide backwards-compatibility via __call() magic method. --- classes/ActionScheduler_AdminView.php | 2 +- classes/ActionScheduler_wcSystemStatus.php | 20 +++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/classes/ActionScheduler_AdminView.php b/classes/ActionScheduler_AdminView.php index 91d8b1892..d87861e78 100644 --- a/classes/ActionScheduler_AdminView.php +++ b/classes/ActionScheduler_AdminView.php @@ -40,7 +40,7 @@ public function init() { public function system_status_report() { $table = new ActionScheduler_wcSystemStatus( ActionScheduler::store() ); - $table->print(); + $table->render(); } /** diff --git a/classes/ActionScheduler_wcSystemStatus.php b/classes/ActionScheduler_wcSystemStatus.php index ec7f5a446..3213d7cce 100644 --- a/classes/ActionScheduler_wcSystemStatus.php +++ b/classes/ActionScheduler_wcSystemStatus.php @@ -21,7 +21,7 @@ function __construct( $store ) { * * Helpful to identify issues, like a clogged queue. */ - public function print() { + public function render() { $action_counts = $this->store->action_counts(); $status_labels = $this->store->get_status_labels(); $oldest_and_newest = $this->get_oldest_and_newest( array_keys( $status_labels ) ); @@ -126,4 +126,22 @@ protected function get_template( $status_labels, $action_counts, $oldest_and_new