Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/woocomme.../includes/admin/views
File: html-admin-page-reports.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Admin View: Page - Reports
[2] Fix | Delete
*/
[3] Fix | Delete
[4] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[5] Fix | Delete
exit;
[6] Fix | Delete
}
[7] Fix | Delete
[8] Fix | Delete
?>
[9] Fix | Delete
<div class="wrap woocommerce">
[10] Fix | Delete
<?php if ( WC()->is_wc_admin_active() ) { ?>
[11] Fix | Delete
<div id="message" class="error inline" style="margin-top:30px">
[12] Fix | Delete
<p>
[13] Fix | Delete
<strong>
[14] Fix | Delete
<?php
[15] Fix | Delete
/* translators: 1: Link URL */
[16] Fix | Delete
echo wp_kses_post( sprintf( __( 'With the release of WooCommerce 4.0, these reports are being replaced. There is a new and better Analytics section available for users running WordPress 5.3+. Head on over to the <a href="%1$s">WooCommerce Analytics</a> or learn more about the new experience in the <a href="https://woocommerce.com/document/woocommerce-analytics/" target="_blank">WooCommerce Analytics documentation</a>.', 'woocommerce' ), esc_url( wc_admin_url( '&path=/analytics/overview' ) ) ) );
[17] Fix | Delete
?>
[18] Fix | Delete
</strong>
[19] Fix | Delete
</p>
[20] Fix | Delete
</div>
[21] Fix | Delete
<?php } ?>
[22] Fix | Delete
<nav class="nav-tab-wrapper woo-nav-tab-wrapper">
[23] Fix | Delete
<?php
[24] Fix | Delete
foreach ( $reports as $key => $report_group ) {
[25] Fix | Delete
echo '<a href="' . admin_url( 'admin.php?page=wc-reports&tab=' . urlencode( $key ) ) . '" class="nav-tab ';
[26] Fix | Delete
if ( $current_tab == $key ) {
[27] Fix | Delete
echo 'nav-tab-active';
[28] Fix | Delete
}
[29] Fix | Delete
echo '">' . esc_html( $report_group['title'] ) . '</a>';
[30] Fix | Delete
}
[31] Fix | Delete
[32] Fix | Delete
do_action( 'wc_reports_tabs' );
[33] Fix | Delete
?>
[34] Fix | Delete
</nav>
[35] Fix | Delete
<?php
[36] Fix | Delete
if ( count( $reports[ $current_tab ]['reports'] ) > 1 ) {
[37] Fix | Delete
?>
[38] Fix | Delete
<ul class="subsubsub">
[39] Fix | Delete
<li>
[40] Fix | Delete
<?php
[41] Fix | Delete
[42] Fix | Delete
$links = array();
[43] Fix | Delete
[44] Fix | Delete
foreach ( $reports[ $current_tab ]['reports'] as $key => $report ) {
[45] Fix | Delete
$link = '<a href="admin.php?page=wc-reports&tab=' . urlencode( $current_tab ) . '&amp;report=' . urlencode( $key ) . '" class="';
[46] Fix | Delete
[47] Fix | Delete
if ( $key == $current_report ) {
[48] Fix | Delete
$link .= 'current';
[49] Fix | Delete
}
[50] Fix | Delete
[51] Fix | Delete
$link .= '">' . $report['title'] . '</a>';
[52] Fix | Delete
[53] Fix | Delete
$links[] = $link;
[54] Fix | Delete
}
[55] Fix | Delete
[56] Fix | Delete
echo implode( ' | </li><li>', $links );
[57] Fix | Delete
[58] Fix | Delete
?>
[59] Fix | Delete
</li>
[60] Fix | Delete
</ul>
[61] Fix | Delete
<br class="clear" />
[62] Fix | Delete
<?php
[63] Fix | Delete
}
[64] Fix | Delete
[65] Fix | Delete
if ( isset( $reports[ $current_tab ]['reports'][ $current_report ] ) ) {
[66] Fix | Delete
$report = $reports[ $current_tab ]['reports'][ $current_report ];
[67] Fix | Delete
[68] Fix | Delete
if ( ! isset( $report['hide_title'] ) || true != $report['hide_title'] ) {
[69] Fix | Delete
echo '<h1>' . esc_html( $report['title'] ) . '</h1>';
[70] Fix | Delete
} else {
[71] Fix | Delete
echo '<h1 class="screen-reader-text">' . esc_html( $report['title'] ) . '</h1>';
[72] Fix | Delete
}
[73] Fix | Delete
[74] Fix | Delete
if ( $report['description'] ) {
[75] Fix | Delete
echo '<p>' . $report['description'] . '</p>';
[76] Fix | Delete
}
[77] Fix | Delete
[78] Fix | Delete
if ( $report['callback'] && ( is_callable( $report['callback'] ) ) ) {
[79] Fix | Delete
call_user_func( $report['callback'], $current_report );
[80] Fix | Delete
}
[81] Fix | Delete
}
[82] Fix | Delete
?>
[83] Fix | Delete
</div>
[84] Fix | Delete
[85] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function