Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a new ElasticPress.io page with client messages #3162

Merged
merged 11 commits into from
Feb 28, 2023
Prev Previous commit
Next Next commit
Merge branch 'develop' into feature/new-epio-page
  • Loading branch information
felipeelia committed Jan 19, 2023
commit c3e6f86363b7443e2fb23ba57ea364e049b395c8
20 changes: 4 additions & 16 deletions includes/classes/Screen/StatusReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,6 @@ public function admin_enqueue_scripts() {
true
);

$reports = $this->get_reports();
$reports = array_map(
function( $report ) {
return [
'actions' => $report->get_actions(),
'groups' => $report->get_groups(),
'messages' => $report->get_messages(),
'title' => $report->get_title(),
];
},
$reports
);

wp_localize_script(
'ep_admin_status_report_scripts',
'epStatusReport',
Expand Down Expand Up @@ -174,9 +161,10 @@ protected function get_formatted_reports() : array {
$this->formatted_reports = array_map(
function( $report ) {
return [
'actions' => $report->get_actions(),
'groups' => $report->get_groups(),
'title' => $report->get_title(),
'actions' => $report->get_actions(),
'groups' => $report->get_groups(),
'messages' => $report->get_messages(),
'title' => $report->get_title(),
];
},
$reports
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.