[CodeFactor] Apply fixes to commit 584e4a4

[ci skip] [skip ci]
This commit is contained in:
codefactor-io 2020-05-27 18:13:28 +00:00
parent 584e4a4050
commit 08436af8f9
2 changed files with 5 additions and 5 deletions

View file

@ -162,7 +162,7 @@ class MainWP_Child_Branding {
$current_settings['remove_permalink'] = $settings['child_remove_permalink'];
$current_settings['contact_label'] = $settings['child_button_contact_label'];
$current_settings['email_message'] = $settings['child_send_email_message'];
$current_settings['message_return_sender'] = $settings['child_message_return_sender'];
$current_settings['message_return_sender'] = $settings['child_message_return_sender'];
$current_settings['submit_button_title'] = $settings['child_submit_button_title'];
$current_settings['hide'] = $settings['child_plugin_hide'] ? 'T' : '';
$current_settings['show_support'] = ( $settings['child_show_support_button'] && ! empty( $settings['child_support_email'] ) ) ? 'T' : '';

View file

@ -486,9 +486,9 @@ class MainWP_Child_Server_Information extends MainWP_Child_Server_Information_Ba
private static function render_server_infor() {
$branding_title = MainWP_Child_Branding::instance()->get_branding_title();
$branding_title = MainWP_Child_Branding::instance()->get_branding_title();
if ( '' == $branding_title ) {
$branding_title = 'MainWP Child';
$branding_title = 'MainWP Child';
}
?>
<table id="mainwp-table" class="wp-list-table widefat" cellspacing="0">
@ -624,8 +624,8 @@ class MainWP_Child_Server_Information extends MainWP_Child_Server_Information_Ba
</tr>
<?php
$all_plugins = get_plugins();
foreach ( $all_plugins as $slug => $plugin ) {
if ( ! empty( $branding_title ) && ( 'mainwp-child/mainwp-child.php' == $slug || 'mainwp-child-reports/mainwp-child-reports.php' == $slug ) ) {
foreach ( $all_plugins as $slug => $plugin ) {
if ( ! empty( $branding_title ) && ( 'mainwp-child/mainwp-child.php' == $slug || 'mainwp-child-reports/mainwp-child-reports.php' == $slug ) ) {
if ( 'mainwp-child/mainwp-child.php' == $slug ) {
$plugin['Name'] = esc_html( stripslashes( $branding_title ) );
} elseif ( 'mainwp-child-reports/mainwp-child-reports.php' == $slug ) {