PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
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 2.30.0 All 255 releases
← All changes | includes/admin/tools/class-settings-logs.php +9 -56 2.3.24.16.9 View file →
@@ -34,72 +34,25 @@
34 34 */
35 35 public function __construct() {
36 36 $this->id = 'logs';
37 37 $this->label = __( 'Logs', 'give' );
38 -
39 - $this->default_tab = 'sales';
40 -
41 38 parent::__construct();
42 39
43 - }
40 + // Do not use main form for this tab.
41 + if ( give_get_current_setting_tab() === $this->id ) {
42 + add_action( 'give-tools_open_form', '__return_empty_string' );
43 + add_action( 'give-tools_close_form', '__return_empty_string' );
44 + }
44 45
45 - /**
46 - * Get settings array.
47 - *
48 - * @since 1.8
49 - * @return array
50 - */
51 - public function get_settings() {
52 - // Get settings.
53 - $settings = apply_filters( 'give_settings_logs', array(
54 - array(
55 - 'id' => 'give_tools_logs',
56 - 'type' => 'title',
57 - 'table_html' => false,
58 - ),
59 - array(
60 - 'id' => 'logs',
61 - 'name' => __( 'Log', 'give' ),
62 - 'type' => 'logs',
63 -
64 - ),
65 - array(
66 - 'id' => 'give_tools_logs',
67 - 'type' => 'sectionend',
68 - 'table_html' => false,
69 - ),
70 - ) );
71 -
72 - /**
73 - * Filter the settings.
74 - *
75 - * @since 1.8
76 - *
77 - * @param array $settings
78 - */
79 - $settings = apply_filters( 'give_get_settings_' . $this->id, $settings );
80 -
81 - // Output.
82 - return $settings;
83 46 }
84 47
85 48 /**
86 - * Get sections.
49 + * Logs list table app container
87 50 *
88 - * @since 1.8
89 - * @return array
51 + * @since 2.10.0
90 52 */
91 - public function get_sections() {
92 - $sections = array(
93 - 'sales' => __( 'Donations', 'give' ),
94 - 'gateway_errors' => __( 'Payment Errors', 'give' ),
95 - 'api_requests' => __( 'API Requests', 'give' ),
96 - 'updates' => __( 'Updates', 'give' ),
97 - );
98 -
99 - $sections = apply_filters( 'give_log_views', $sections );
100 -
101 - return apply_filters( 'give_get_sections_' . $this->id, $sections );
53 + public function output() {
54 + echo '<div id="give-logs-list-table-app" style="padding-top: 20px;"></div>';
102 55 }
103 56 }
104 57
105 58 endif;