Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamadNateqi committed Nov 22, 2024
1 parent bc714fe commit 1f36e2b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
28 changes: 15 additions & 13 deletions includes/Settings/SettingsDebug.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,23 @@ public function display_settings() {
submit_button();
}

public function display_status() {
include( WPO_WCPDF()->plugin_path() . '/views/advanced-status.php' );
/**
* Display the server requirement page.
*
* @return void
*/
public function display_status(): void {
$server_configs = $this->get_server_config();
include WPO_WCPDF()->plugin_path() . '/views/advanced-status.php';
}

public function display_tools() {
include( WPO_WCPDF()->plugin_path() . '/views/advanced-tools.php' );
/**
* Display the advanced tools page.
*
* @return void
*/
public function display_tools(): void {
include WPO_WCPDF()->plugin_path() . '/views/advanced-tools.php';
}

public function display_numbers() {
Expand Down Expand Up @@ -1053,15 +1064,6 @@ public function get_server_config(): array {
}
}

if ( ! $server_configs['PHP version']['result'] ) {
$server_configs['PHP version']['required'] .= '<br/>' . sprintf(
/* translators: <a> tags */
__( 'Download %1$sthis addon%2$s to enable backwards compatibility.', 'woocommerce-pdf-invoices-packing-slips' ),
'<a href="https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/backwards-compatibility-with-php-5-6/" target="_blank">',
'</a>'
);
}

return apply_filters( 'wpo_wcpdf_server_configs', $server_configs );
}

Expand Down
3 changes: 0 additions & 3 deletions views/advanced-status.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}

$server_configs = $this->get_server_config();

?>

<table class="widefat system-status-table" cellspacing="1px" cellpadding="4px" style="width:100%;">
Expand Down

0 comments on commit 1f36e2b

Please sign in to comment.