PluginProbe
FeedWordPress / 2022.0208
FeedWordPress v2022.0208
trunk 0.8 0.9 0.91 0.95 0.96 0.97 0.98 0.981 0.99 0.991 0.992 0.993 2008.1030 2008.1101 2008.1105 2008.1214 2009.0612 2009.0613 2009.0618 2009.0707 2009.1111 2009.1112 2010.0127 2010.0528 All 65 releases
← All changes | performance-page.php +8 -8 trunk2022.0208 View file →
@@ -20,10 +20,10 @@
20 20 // If this is a POST, validate source and user credentials
21 21 FeedWordPressCompatibility::validate_http_request(/*action=*/ 'feedwordpress_performance', /*capability=*/ 'manage_options');
22 22
23 23 if (strtoupper($_SERVER['REQUEST_METHOD'])=='POST') :
24 - $this->accept_POST();
25 - do_action('feedwordpress_admin_page_performance_save', null, $this);
24 + $this->accept_POST($_POST);
25 + do_action('feedwordpress_admin_page_performance_save', $_POST, $this);
26 26 endif;
27 27
28 28 ////////////////////////////////////////////////
29 29 // Prepare settings page ///////////////////////
@@ -60,24 +60,24 @@
60 60 <?php
61 61 $this->close_sheet();
62 62 } /* FeedWordPressPerformancePage::display () */
63 63
64 - function accept_POST () {
64 + function accept_POST ($post) {
65 65 global $feedwordpress;
66 66
67 - if ( ! is_null( FeedWordPress::post( 'create_index' ) ) ) :
67 + if (isset($post['create_index'])) :
68 68 FeedWordPress::create_guid_index();
69 69 $this->updated = __('guid column index created on database table.');
70 70 endif;
71 - if ( ! is_null( FeedWordPress::post( 'remove_index' ) ) ) :
71 + if (isset($post['remove_index'])) :
72 72 FeedWordPress::remove_guid_index();
73 73 $this->updated = __('guid column index removed from database table.');
74 74 endif;
75 75
76 - if ( ! is_null( FeedWordPress::post( 'clear_cache' ) ) ) :
76 + if (isset($post['clear_cache'])) :
77 77 $N = $feedwordpress->clear_cache();
78 78 $feeds = (($N == 1) ? __("feed") : __("feeds"));
79 - $this->updated = sprintf( __("Cleared %d cached %s from WordPress database."), $N, $feeds );
79 + $this->updated = sprintf(__("Cleared %d cached %s from WordPress database."), $N, $feeds);
80 80 endif;
81 81
82 82 } /* FeedWordPressPerformancePage::accept_POST () */
83 83
@@ -93,9 +93,9 @@
93 93 and force FeedWordPress to make a fresh scan for updates on syndicated feeds.</p></td></tr>
94 94
95 95 <tr style="vertical-align: top">
96 96 <th width="33%" scope="row">Guid index:</th>
97 -<td width="67%"><?php if ( !FeedWordPress::has_guid_index()) : ?>
97 +<td width="67%"><?php if (!FeedWordPress::has_guid_index()) : ?>
98 98 <input class="button" type="submit" name="create_index" value="Create index on guid column in posts database table" />
99 99 <p>Creating this index may significantly improve performance on some large
100 100 FeedWordPress installations.</p>
101 101 <?php else : ?>