mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-06 11:10:43 +08:00
parent
9315fffdb4
commit
70ebd81a01
5 changed files with 78 additions and 77 deletions
|
@ -281,10 +281,10 @@ class MainWP_Child_Callable {
|
|||
'trashpost' => "DELETE FROM $wpdb->posts WHERE post_status = 'trash'",
|
||||
'spam' => "DELETE FROM $wpdb->comments WHERE comment_approved = 'spam'",
|
||||
'pending' => "DELETE FROM $wpdb->comments WHERE comment_approved = '0'",
|
||||
'trashcomment' => "DELETE FROM $wpdb->comments WHERE comment_approved = 'trash'"
|
||||
'trashcomment' => "DELETE FROM $wpdb->comments WHERE comment_approved = 'trash'",
|
||||
);
|
||||
|
||||
foreach( $maint_sqls as $act => $sql_clean ) {
|
||||
foreach ( $maint_sqls as $act => $sql_clean ) {
|
||||
if ( in_array( $act, $maint_options ) ) {
|
||||
$wpdb->query( $sql_clean ); // phpcs:ignore -- safe sql.
|
||||
$performed_what[] = $act; // 'Auto draft posts deleted'.
|
||||
|
|
|
@ -431,6 +431,7 @@ class MainWP_Child_Server_Information {
|
|||
public static function render_page() {
|
||||
self::render_page_js();
|
||||
?>
|
||||
|
||||
<style type="text/css">
|
||||
#mwp-server-information {
|
||||
display: none;
|
||||
|
@ -563,7 +564,7 @@ class MainWP_Child_Server_Information {
|
|||
<?php
|
||||
}
|
||||
|
||||
private function render_system_infor_rows( $branding_title ){
|
||||
private function render_system_infor_rows( $branding_title ) {
|
||||
?>
|
||||
<tr>
|
||||
<td style="background: #333; color: #fff;" colspan="5"><?php echo esc_html( strtoupper( stripslashes( $branding_title ) ) ); ?></td>
|
||||
|
@ -640,7 +641,6 @@ class MainWP_Child_Server_Information {
|
|||
'curlssl'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private function render_mysql_infor_rows() {
|
||||
|
@ -687,7 +687,7 @@ class MainWP_Child_Server_Information {
|
|||
}
|
||||
}
|
||||
|
||||
private function render_php_infor_rows(){
|
||||
private function render_php_infor_rows() {
|
||||
?>
|
||||
<tr>
|
||||
<td style="background: #333; color: #fff;" colspan="5"><?php esc_html_e( 'PHP INFORMATION', 'mainwp-child' ); ?></td>
|
||||
|
@ -739,7 +739,7 @@ class MainWP_Child_Server_Information {
|
|||
<?php
|
||||
}
|
||||
|
||||
private function render_server_infor_rows(){
|
||||
private function render_server_infor_rows() {
|
||||
?>
|
||||
<tr>
|
||||
<td style="background: #333; color: #fff;" colspan="5"><?php esc_html_e( 'SERVER INFORMATION', 'mainwp-child' ); ?></td>
|
||||
|
|
|
@ -161,11 +161,12 @@ class MainWP_Client_Report {
|
|||
'sucuri_scan' => 'mainwp_sucuri',
|
||||
'mainwp_maintenance' => 'mainwp_maintenance',
|
||||
'wordfence_scan' => 'mainwp_wordfence',
|
||||
'media' => 'media'
|
||||
'media' => 'media',
|
||||
);
|
||||
|
||||
if ( isset( $mapping_connectors[ $context ] ) )
|
||||
if ( isset( $mapping_connectors[ $context ] ) ) {
|
||||
$connector = $mapping_connectors[ $context ];
|
||||
}
|
||||
|
||||
return $connector;
|
||||
}
|
||||
|
|
|
@ -181,9 +181,9 @@ class MainWP_Clone {
|
|||
self::render_java_script();
|
||||
}
|
||||
|
||||
private static function render_form( $sitesToClone, $uploadFile, $uploadSize, $error, $uploadError ){
|
||||
private static function render_form( $sitesToClone, $uploadFile, $uploadSize, $error, $uploadError ) {
|
||||
|
||||
if ( !empty( $uploadFile ) ) {
|
||||
if ( ! empty( $uploadFile ) ) {
|
||||
esc_html_e( 'Upload successful.', 'mainwp-child' );
|
||||
?>
|
||||
<a href="#" id="mainwp-child_uploadclonebutton" class="button-primary" file="<?php echo esc_attr( $uploadFile ); ?>"><?php esc_html_e( 'Clone/Restore website', 'mainwp-child' ); ?></a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue