From c050d8f532318e484e9c25b64467b5cf677fffa3 Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Fri, 22 May 2020 13:21:39 +0000 Subject: [PATCH] [CodeFactor] Apply fixes to commit 9dc228e [ci skip] [skip ci] --- class/class-mainwp-child-branding-render.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/class/class-mainwp-child-branding-render.php b/class/class-mainwp-child-branding-render.php index b76d208..9bf2e5d 100644 --- a/class/class-mainwp-child-branding-render.php +++ b/class/class-mainwp-child-branding-render.php @@ -24,7 +24,6 @@ class MainWP_Child_Branding_Render { } public function __construct() { - } public function admin_head_hide_elements() { @@ -150,9 +149,9 @@ class MainWP_Child_Branding_Render {
get_branding_options(); + $opts = MainWP_Child_Branding::instance()->get_branding_options(); $email = $opts['support_email']; $sub = wp_kses_post( nl2br( stripslashes( $_POST['mainwp_branding_contact_message_subject'] ) ) ); $from = trim( $_POST['mainwp_branding_contact_send_from'] ); @@ -178,7 +177,7 @@ class MainWP_Child_Branding_Render { } return false; } - + public function after_admin_bar_render() { $hide_slugs = apply_filters( 'mainwp_child_hide_update_notice', array() );