PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.7.0
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.7.0
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
← All changes | optimizations/pingbacks.php +5 -0 4.5.3 → 4.7.0 View file →
@@ -3,8 +3,10 @@
3 3 if (!defined('ABSPATH')) die('No direct access allowed');
4 4
5 5 class WP_Optimization_pingbacks extends WP_Optimization {
6 6
7 + public $available_for_auto = true;
8 +
7 9 public $ui_sort_order = 6000;
8 10
9 11 public $available_for_saving = true;
10 12
@@ -141,8 +143,11 @@
141 143 $comments = $this->wpdb->get_var($sql); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- SQL is safe, no user input used
142 144 $this->found_count += $comments;
143 145 }
144 146
147 + /**
148 + * Get settings label.
149 + */
145 150 public function settings_label() {
146 151 return __('Remove pingbacks', 'wp-optimize');
147 152 }
148 153 }