Skip to content

Commit

Permalink
PROD-7479 - code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
KartikSuthar committed Jun 7, 2024
1 parent ba03849 commit c624843
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 6 deletions.
12 changes: 10 additions & 2 deletions src/bp-core/admin/classes/class-bb-performance-tester.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,16 @@ public function settings_page() {

?>
<div class="wrap wrap--performance">
<h2><?php esc_html_e( 'WPPerformanceTester', 'buddyboss' ); ?></h2>
<p><?php esc_html_e( 'WPPerformanceTester performs a series of tests to see how well your server performs. The first set test the raw server performance. The second is WordPress specific. Your results will be displayed and you can see how your results stack up against others.', 'buddyboss' ); ?></p>
<h2><?php esc_html_e( 'Host Performance Tester', 'buddyboss' ); ?></h2>
<p>
<?php
printf(
/* translators: WPHostingBenchmarks link */
wp_kses_post( __( 'This tool completes a series of tests to see how well your server performs. The first set tests the raw server performance. The second is WordPress specific. Your results will be displayed and you can see how your results stack up against others. To compare your benchmarks against other hosts, check out %s', 'buddyboss' ) ),
'<a href="https://wphostingbenchmarks.com/">WPHostingBenchmarks.com</a>'
);
?>
</p>

<form method="post" action="
<?php
Expand Down
2 changes: 1 addition & 1 deletion src/bp-core/admin/js/bb-upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ window.bp = window.bp || {};

(function () {

var APIDomain = 'https://buddyboss.com/';
var APIDomain = 'https://www.buddyboss.com/';

function renderIntegrations() {

Expand Down
26 changes: 23 additions & 3 deletions src/bp-core/admin/templates/upgrade-performance-tester-screen.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,32 @@
<?php
/**
* BuddyBoss Performance Tester Admin Screen.
*
* @since BuddyBoss [BBVERSION]
*
* @package BuddyBoss
*/

$bb_wpt = bb_web_performance_tester();
?>



<div class="wrap">
<div id="bb-upgrade">
<?php $bb_wpt->settings_page(); ?>
<a href="
<?php
echo esc_url(
bp_get_admin_url(
add_query_arg(
array(
'page' => 'bb-upgrade',
'tab' => 'bb-upgrade',
),
'admin.php'
)
)
);
?>
"><?php esc_html_e( 'Go back', 'buddyboss' ); ?></a>
<?php $bb_wpt->settings_page(); ?>
</div>
</div>

0 comments on commit c624843

Please sign in to comment.