PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.17.0
GiveWP – Donation Plugin and Fundraising Platform v4.17.0
4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 All 256 releases
← All changes | includes/admin/reports/class-earnings-report.php +12 -12 2.3.0 → 4.17.0 View file →
@@ -3,9 +3,9 @@
3 3 * Give Reports Page/Tab
4 4 *
5 5 * @package Give
6 6 * @subpackage Classes/Give_Earnings_Report
7 - * @copyright Copyright (c) 2016, WordImpress
7 + * @copyright Copyright (c) 2016, GiveWP
8 8 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
9 9 * @since 1.8
10 10 */
11 11
@@ -34,13 +34,13 @@
34 34 * Constructor.
35 35 */
36 36 public function __construct() {
37 37 $this->id = 'earnings';
38 - $this->label = esc_html__( 'Income', 'give' );
38 + $this->label = esc_html__( 'Revenue', 'give' );
39 39
40 40 parent::__construct();
41 41
42 - add_action( 'give_admin_field_report_earnings', array( $this, 'render_report_earnings_field' ), 10, 2 );
42 + add_action( 'give_admin_field_report_earnings', [ $this, 'render_report_earnings_field' ], 10, 2 );
43 43
44 44 // Do not use main form for this tab.
45 45 if ( give_get_current_setting_tab() === $this->id ) {
46 46 add_action( 'give-reports_open_form', '__return_empty_string' );
@@ -64,25 +64,25 @@
64 64 * @param array $settings
65 65 */
66 66 $settings = apply_filters(
67 67 'give_get_settings_' . $this->id,
68 - array(
69 - array(
68 + [
69 + [
70 70 'id' => 'give_tools_earnings',
71 71 'type' => 'title',
72 72 'table_html' => false,
73 - ),
74 - array(
73 + ],
74 + [
75 75 'id' => 'earnings',
76 - 'name' => esc_html__( 'Income', 'give' ),
76 + 'name' => esc_html__( 'Revenue', 'give' ),
77 77 'type' => 'report_earnings',
78 - ),
79 - array(
78 + ],
79 + [
80 80 'id' => 'give_tools_earnings',
81 81 'type' => 'sectionend',
82 82 'table_html' => false,
83 - ),
84 - )
83 + ],
84 + ]
85 85 );
86 86
87 87 // Output.
88 88 return $settings;