mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-06 09:20:28 +08:00
Merge pull request #163 from mainwp/bogdan01-cf-autofix
Apply fixes from CodeFactor
This commit is contained in:
commit
7408130484
1 changed files with 3 additions and 4 deletions
|
@ -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 {
|
|||
<div class="mainwp_info-box-yellow"><?php echo esc_html( $send_email_message ) . '  ' . $back_link; ?></div>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
public function send_support_mail() {
|
||||
$opts = MainWP_Child_Branding::instance()->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() );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue