PluginProbe
FeedWordPress / 2009.0612
FeedWordPress v2009.0612
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 | syndication-options.php +127 -236 0.9932009.0612 View file →
@@ -1,7 +1,9 @@
1 1 <?php
2 +require_once(dirname(__FILE__) . '/admin-ui.php');
3 +
2 4 function fwp_syndication_options_page () {
3 - global $wpdb, $wp_db_version;
5 + global $wpdb, $wp_db_version, $fwp_path;
4 6
5 7 if (FeedWordPress::needs_upgrade()) :
6 8 fwp_upgrade_page();
7 9 return;
@@ -6,119 +8,59 @@
6 8 fwp_upgrade_page();
7 9 return;
8 10 endif;
9 11
10 - if (isset($_POST['submit'])) :
11 - check_admin_referer();
12 + // If this is a POST, validate source and user credentials
13 + FeedWordPressCompatibility::validate_http_request(/*action=*/ 'feedwordpress_options', /*capability=*/ 'manage_options');
12 14
13 - if (!current_user_can('manage_options')):
14 - die (__("Cheatin' uh ?"));
15 - else:
16 - update_option('feedwordpress_cat_id', $_REQUEST['syndication_category']);
17 - update_option('feedwordpress_munge_permalink', $_REQUEST['munge_permalink']);
18 - update_option('feedwordpress_update_logging', $_REQUEST['update_logging']);
19 -
20 - if ('newuser'==$_REQUEST['unfamiliar_author']) :
21 - $newuser_name = trim($_REQUEST['unfamiliar_author_newuser']);
22 - if (strlen($newuser_name) > 0) :
23 - $userdata = array();
24 - $userdata['ID'] = NULL;
25 -
26 - $userdata['user_login'] = sanitize_user($newuser_name);
27 - $userdata['user_login'] = apply_filters('pre_user_login', $userdata['user_login']);
28 -
29 - $userdata['user_nicename'] = sanitize_title($newuser_name);
30 - $userdata['user_nicename'] = apply_filters('pre_user_nicename', $userdata['user_nicename']);
31 -
32 - $userdata['display_name'] = $wpdb->escape($newuser_name);
15 + if (isset($_POST['create_index'])) :
16 + FeedWordPress::create_guid_index();
17 +?>
18 +<div class="updated">
19 +<p><?php _e('Index created on database table.')?></p>
20 +</div>
21 +<?php
22 + endif;
33 23
34 - $newuser_id = wp_insert_user($userdata);
35 - if (is_numeric($newuser_id)) :
36 - update_option('feedwordpress_unfamiliar_author', $newuser_id);
37 - else :
38 - // TODO: Add some error detection and reporting
39 - endif;
40 - else :
41 - // TODO: Add some error reporting
42 - endif;
43 - else :
44 - update_option('feedwordpress_unfamiliar_author', $_REQUEST['unfamiliar_author']);
45 - endif;
24 + if (isset($_POST['submit']) or isset($_POST['create_index'])) :
25 + update_option('feedwordpress_cat_id', $_REQUEST['syndication_category']);
26 + update_option('feedwordpress_update_logging', $_REQUEST['update_logging']);
27 + update_option('feedwordpress_debug', $_POST['feedwordpress_debug']);
28 + update_option('feedwordpress_automatic_updates', ($_POST['automatic_updates']=='yes'));
29 + update_option('feedwordpress_update_time_limit', ($_POST['update_time_limit']=='yes')?(int) $_POST['time_limit_seconds']:0);
46 30
47 - update_option('feedwordpress_unfamiliar_category', $_REQUEST['unfamiliar_category']);
48 - update_option('feedwordpress_syndicated_post_status', $_REQUEST['post_status']);
49 - update_option('feedwordpress_automatic_updates', ($_POST['automatic_updates']=='yes'));
50 - update_option('feedwordpress_freshness', ($_POST['freshness_interval']*60));
31 + $freshness_interval = (isset($_POST['freshness_interval']) ? (int) $_POST['freshness_interval'] : 10);
32 + update_option('feedworidpress_freshness', $freshness_interval*60);
51 33
52 - // Categories
53 - $cats = array();
54 - if (isset($_POST['post_category'])) :
55 - $cats = array();
56 - foreach ($_POST['post_category'] as $cat_id) :
57 - $cats[] = '{#'.$cat_id.'}';
58 - endforeach;
59 - endif;
34 + if (isset($_REQUEST['hardcode_name']) and ($_REQUEST['hardcode_name'] == 'no')) :
35 + update_option('feedwordpress_hardcode_name', 'no');
36 + else :
37 + update_option('feedwordpress_hardcode_name', 'yes');
38 + endif;
39 +
40 + if (isset($_REQUEST['hardcode_description']) and ($_REQUEST['hardcode_description'] == 'no')) :
41 + update_option('feedwordpress_hardcode_description', 'no');
42 + else :
43 + update_option('feedwordpress_hardcode_description', 'yes');
44 + endif;
60 45
61 - if (!empty($cats)) :
62 - update_option('feedwordpress_syndication_cats', implode(FEEDWORDPRESS_CAT_SEPARATOR, $cats));
63 - else :
64 - delete_option('feedwordpress_syndication_cats');
65 - endif;
66 -
67 - // Tags
68 - if (isset($_REQUEST['tags_input'])) :
69 - $tags = explode(",", $_REQUEST['tags_input']);
70 - else :
71 - $tags = array();
72 - endif;
73 -
74 - if (!empty($tags)) :
75 - update_option('feedwordpress_syndication_tags', implode(FEEDWORDPRESS_CAT_SEPARATOR, $tags));
76 - else :
77 - delete_option('feedwordpress_syndication_tags');
78 - endif;
79 -
80 - if (isset($_REQUEST['comment_status']) and ($_REQUEST['comment_status'] == 'open')) :
81 - update_option('feedwordpress_syndicated_comment_status', 'open');
82 - else :
83 - update_option('feedwordpress_syndicated_comment_status', 'closed');
84 - endif;
85 -
86 - if (isset($_REQUEST['ping_status']) and ($_REQUEST['ping_status'] == 'open')) :
87 - update_option('feedwordpress_syndicated_ping_status', 'open');
88 - else :
89 - update_option('feedwordpress_syndicated_ping_status', 'closed');
90 - endif;
91 -
92 - if (isset($_REQUEST['hardcode_name']) and ($_REQUEST['hardcode_name'] == 'no')) :
93 - update_option('feedwordpress_hardcode_name', 'no');
94 - else :
95 - update_option('feedwordpress_hardcode_name', 'yes');
96 - endif;
97 -
98 - if (isset($_REQUEST['hardcode_description']) and ($_REQUEST['hardcode_description'] == 'no')) :
99 - update_option('feedwordpress_hardcode_description', 'no');
100 - else :
101 - update_option('feedwordpress_hardcode_description', 'yes');
102 - endif;
103 -
104 - if (isset($_REQUEST['hardcode_url']) and ($_REQUEST['hardcode_url'] == 'no')) :
105 - update_option('feedwordpress_hardcode_url', 'no');
106 - else :
107 - update_option('feedwordpress_hardcode_url', 'yes');
108 - endif;
46 + if (isset($_REQUEST['hardcode_url']) and ($_REQUEST['hardcode_url'] == 'no')) :
47 + update_option('feedwordpress_hardcode_url', 'no');
48 + else :
49 + update_option('feedwordpress_hardcode_url', 'yes');
50 + endif;
109 51 ?>
110 52 <div class="updated">
111 53 <p><?php _e('Options saved.')?></p>
112 54 </div>
113 55 <?php
114 - endif;
115 56 endif;
116 57
117 58 $cat_id = FeedWordPress::link_category_id();
118 - $munge_permalink = get_option('feedwordpress_munge_permalink');
119 59 $update_logging = get_option('feedwordpress_update_logging');
60 + $feedwordpress_debug = (get_option('feedwordpress_debug')=='yes');
120 61
62 + $update_time_limit = (int) get_option('feedwordpress_update_time_limit');
121 63 $automatic_updates = get_option('feedwordpress_automatic_updates');
122 64
123 65 $freshness_interval = get_option('feedwordpress_freshness');
124 66 if (false === $freshness_interval) :
@@ -128,26 +70,14 @@
128 70
129 71 $hardcode_name = get_option('feedwordpress_hardcode_name');
130 72 $hardcode_description = get_option('feedwordpress_hardcode_description');
131 73 $hardcode_url = get_option('feedwordpress_hardcode_url');
132 -
133 - $post_status = get_option("feedwordpress_syndicated_post_status"); // default="publish"
134 - $comment_status = get_option("feedwordpress_syndicated_comment_status"); // default="closed"
135 - $ping_status = get_option("feedwordpress_syndicated_ping_status"); // default="closed"
136 -
137 - $unfamiliar_author = array ('create' => '','default' => '','filter' => '');
138 - $ua = FeedWordPress::on_unfamiliar('author');
139 - if (is_string($ua) and array_key_exists($ua, $unfamiliar_author)) :
140 - $unfamiliar_author[$ua] = ' checked="checked"';
141 - endif;
142 - $unfamiliar_category = array ('create'=>'','default'=>'','filter'=>'');
143 - $uc = FeedWordPress::on_unfamiliar('category');
144 - if (is_string($uc) and array_key_exists($uc, $unfamiliar_category)) :
145 - $unfamiliar_category[$uc] = ' checked="checked"';
146 - endif;
147 74
148 75 if (isset($wp_db_version) and $wp_db_version >= 4772) :
149 - $results = get_categories('type=link');
76 + $results = get_categories(array(
77 + "type" => 'link',
78 + "hide_empty" => false,
79 + ));
150 80
151 81 // Guarantee that the Contributors category will be in the drop-down chooser, even if it is empty.
152 82 $found_link_category_id = false;
153 83 foreach ($results as $row) :
@@ -166,16 +96,28 @@
166 96
167 97 $tags = array_map('trim',
168 98 preg_split(FEEDWORDPRESS_CAT_SEPARATOR_PATTERN, get_option('feedwordpress_syndication_tags'))
169 99 );
100 +
101 + if (fwp_test_wp_version(FWP_SCHEMA_27)) :
102 + $icon = '<div class="icon32"><img src="'.htmlspecialchars(WP_PLUGIN_URL.'/'.$fwp_path.'/feedwordpress.png').'" alt="" /></div>';
103 + else :
104 + $icon = '';
105 + endif;
106 +
107 + if (fwp_test_wp_version(FWP_SCHEMA_26)) :
108 + $options = __('Settings');
109 + else :
110 + $options = __('Options');
111 + endif;
170 112 ?>
171 113 <script type="text/javascript">
172 - function flip_newuser (item) {
173 - rollup=document.getElementById(item);
174 - newuser=document.getElementById(item+'-newuser');
175 - sitewide=document.getElementById(item+'-default');
114 + function contextual_appearance (item, appear, disappear, value, checkbox) {
115 + var rollup=document.getElementById(item);
116 + var newuser=document.getElementById(appear);
117 + var sitewide=document.getElementById(disappear);
176 118 if (rollup) {
177 - if ('newuser'==rollup.value) {
119 + if ((checkbox && rollup.checked) || (!checkbox && value==rollup.value)) {
178 120 if (newuser) newuser.style.display='block';
179 121 if (sitewide) sitewide.style.display='none';
180 122 } else {
181 123 if (newuser) newuser.style.display='none';
@@ -185,12 +127,16 @@
185 127 }
186 128 </script>
187 129
188 130 <div class="wrap">
189 -<h2>Syndication Options</h2>
131 +<?php print $icon; ?>
132 +<h2>Syndication <?php print $options; ?></h2>
190 133 <div id="poststuff">
191 134 <form action="" method="post">
192 -<?php fwp_linkedit_single_submit(); ?>
135 +<?php
136 + FeedWordPressCompatibility::stamp_nonce('feedwordpress_options');
137 + fwp_linkedit_single_submit();
138 +?>
193 139 <div id="post-body">
194 140 <?php fwp_option_box_opener('Syndicated Feeds', 'syndicatedfeedsdiv'); ?>
195 141 <table class="editform" width="100%" cellspacing="2" cellpadding="5">
196 142 <tr>
@@ -195,34 +141,48 @@
195 141 <table class="editform" width="100%" cellspacing="2" cellpadding="5">
196 142 <tr>
197 143 <th width="33%" scope="row">Syndicated Link category:</th>
198 144 <td width="67%"><?php
199 - echo "\n<select name=\"syndication_category\" size=\"1\">";
200 - foreach ($results as $row) {
201 - if (!isset($row->cat_id)) { $row->cat_id = $row->cat_ID; }
202 -
203 - echo "\n\t<option value=\"$row->cat_id\"";
204 - if ($row->cat_id == $cat_id)
205 - echo " selected='selected'";
206 - echo ">$row->cat_id: ".wp_specialchars($row->cat_name);
207 - if ('Y' == $row->auto_toggle)
208 - echo ' (auto toggle)';
209 - echo "</option>\n";
210 - }
211 - echo "\n</select>\n";
145 + echo "\n<select name=\"syndication_category\" size=\"1\">";
146 + foreach ($results as $row) :
147 + if (!isset($row->cat_id)) : $row->cat_id = $row->cat_ID; endif;
148 +
149 + echo "\n\t<option value=\"$row->cat_id\"";
150 + if ($row->cat_id == $cat_id) :
151 + echo " selected='selected'";
152 + endif;
153 + echo ">$row->cat_id: ".wp_specialchars($row->cat_name);
154 + if ('Y' == $row->auto_toggle) :
155 + echo ' (auto toggle)';
156 + endif;
157 + echo "</option>\n";
158 + endforeach;
159 + echo "\n</select>\n";
212 160 ?></td>
213 161 </tr>
214 162
215 -<tr>
216 -<th width="33%" scope="row">Check for new posts:</th>
217 -<td width="67%"><select name="automatic_updates" size="1" onchange="if (this.value=='yes') { disp = 'inline'; } else { disp = 'none'; }; el=document.getElementById('automatic-update-interval-span'); if (el) el.style.display=disp;">
163 +<tr style="vertical-align: top">
164 +<th width="33%" scope="row">Check for updates:</th>
165 +<td width="67%"><select name="automatic_updates" size="1">
218 166 <option value="yes"<?php echo ($automatic_updates)?' selected="selected"':''; ?>>automatically</option>
219 167 <option value="no"<?php echo (!$automatic_updates)?' selected="selected"':''; ?>>only when I request</option>
220 168 </select>
221 -<span id="automatic-update-interval-span" style="display: <?php echo $automatic_updates?'inline':'none';?>"><label for="automatic-update-interval">every</label> <input id="automatic-update-interval" name="freshness_interval" value="<?php echo $freshness_interval; ?>" size="4" /> minutes.</span>
222 169 </td>
223 170 </tr>
224 171
172 +<tr style="vertical-align: top">
173 +<th width="33%" scope="row"><?php print __('Time limit on updates'); ?>:</th>
174 +<td width="67%"><select id="time-limit" name="update_time_limit" size="1" onchange="contextual_appearance('time-limit', 'time-limit-box', null, 'yes');">
175 +<option value="no"<?php echo ($update_time_limit>0)?'':' selected="selected"'; ?>>no time limit on updates</option>
176 +<option value="yes"<?php echo ($update_time_limit>0)?' selected="selected"':''; ?>>limit updates to no more than...</option>
177 +</select>
178 +<span id="time-limit-box"><label><input type="text" name="time_limit_seconds" value="<?php print $update_time_limit; ?>" size="5" /> seconds</label></span>
179 +</tr>
180 +
181 +<script type="text/javascript">
182 + contextual_appearance('time-limit', 'time-limit-box', null, 'yes');
183 +</script>
184 +
225 185 <tr><th width="33%" scope="row" style="vertical-align:top">Feed information:</th>
226 186 <td width="67%"><ul style="margin:0;padding:0;list-style:none">
227 187 <li><input type="checkbox" name="hardcode_name" value="no"<?php echo (($hardcode_name=='yes')?'':' checked="checked"');?>/> Update the contributor title when the feed title changes</li>
228 188 <li><input type="checkbox" name="hardcode_description" value="no"<?php echo (($hardcode_description=='yes')?'':' checked="checked"');?>/> Update when contributor description if the feed tagline changes</li>
@@ -232,121 +192,52 @@
232 192 <?php fwp_linkedit_periodic_submit(); ?>
233 193 <?php fwp_option_box_closer(); ?>
234 194
235 195 <?php
236 - fwp_option_box_opener(__('Syndicated Posts'), 'syndicatedpostsdiv');
237 -?>
238 -<table class="editform" width="75%" cellspacing="2" cellpadding="5">
239 -<tr style="vertical-align: top"><th width="44%" scope="row">Publication:</th>
240 -<td width="56%"><ul style="margin: 0; padding: 0; list-style:none">
241 -<li><label><input type="radio" name="post_status" value="publish"<?php echo (!$post_status or $post_status=='publish')?' checked="checked"':''; ?> /> Publish syndicated posts immediately</label></li>
242 -<?php if (SyndicatedPost::use_api('post_status_pending')) : ?>
243 -<li><label><input type="radio" name="post_status" value="pending"<?php echo ($post_status=='pending')?' checked="checked"':''; ?> /> Hold syndicated posts for review; mark as Pending</label></li>
244 -<?php endif; ?>
245 -<li><label><input type="radio" name="post_status" value="draft"<?php echo ($post_status=='draft')?' checked="checked"':''; ?> /> Save syndicated posts as drafts</label></li>
246 -<li><label><input type="radio" name="post_status" value="private"<?php echo ($post_status=='private')?' checked="checked"':''; ?> /> Save syndicated posts as private posts</label></li>
247 -</ul></td></tr>
248 -<tr style="vertical-align: top"><th width="44%" scope="row">Permalinks point to:</th>
249 -<td width="56%"><select name="munge_permalink" size="1">
250 -<option value="yes"<?php echo ($munge_permalink=='yes')?' selected="selected"':''; ?>>original website</option>
251 -<option value="no"<?php echo ($munge_permalink=='no')?' selected="selected"':''; ?>>this website</option>
252 -</select></td></tr>
253 -</table>
254 -<?php
255 - fwp_option_box_closer();
256 - fwp_linkedit_periodic_submit();
257 -
258 - fwp_option_box_opener(__('Categories for syndicated posts'), 'categorydiv', 'postbox');
259 - fwp_category_box($dogs, '<em>all syndicated posts</em>');
260 -?>
261 -<table class="editform" width="75%" cellspacing="2" cellpadding="5">
262 -<tr style="vertical-align: top"><th width="27%" scope="row" style="vertical-align:top">Unfamiliar categories:</th>
263 -<td><ul style="margin: 0; padding:0; list-style:none">
264 -<li><label><input type="radio" name="unfamiliar_category" value="create"<?php echo $unfamiliar_category['create']; ?>/> create any categories the post is in</label></li>
265 -<li><label><input type="radio" name="unfamiliar_category" value="default"<?php echo $unfamiliar_category['default']; ?>/> don't create new categories</li>
266 -<li><label><input type="radio" name="unfamiliar_category" value="filter"<?php echo $unfamiliar_category['filter']; ?>/> don't create new categories and don't syndicate posts unless they match at least one familiar category</label></li>
267 -</ul></td></tr>
268 -</table>
269 -<?php
270 - fwp_option_box_closer();
271 - fwp_linkedit_periodic_submit();
272 -
273 -if (isset($wp_db_version) and $wp_db_version >= FWP_SCHEMA_25) :
274 - fwp_tags_box($tags);
275 - fwp_linkedit_periodic_submit();
276 -endif;
277 -
278 - fwp_option_box_opener(__('Comments & Pings'), 'commentstatus', 'postbox');
279 -?>
280 -<table class="editform" width="75%" cellspacing="2" cellpadding="5">
281 -<tr style="vertical-align: top"><th width="44%" scope="row"><?php print __('Comments') ?>:</th>
282 -<td width="56%"><ul style="margin: 0; padding: 0; list-style:none">
283 -<li><label><input type="radio" name="comment_status" value="open"<?php echo ($comment_status=='open')?' checked="checked"':''; ?> /> Allow comments on syndicated posts</label></li>
284 -<li><label><input type="radio" name="comment_status" value="closed"<?php echo ($comment_status!='open')?' checked="checked"':''; ?> /> Don't allow comments on syndicated posts</label></li>
285 -</ul></td></tr>
286 -
287 -<tr style="vertical-align: top"><th width="44%" scope="row"><?php print __('Pings') ?>:</th>
288 -<td width="56%"><ul style="margin:0; padding: 0; list-style:none">
289 -<li><label><input type="radio" name="ping_status" value="open"<?php echo ($ping_status=='open')?' checked="checked"':''; ?> /> Accept pings on syndicated posts</label></li>
290 -<li><label><input type="radio" name="ping_status" value="closed"<?php echo ($ping_status!='open')?' checked="checked"':''; ?> /> Don't accept pings on syndicated posts</label></li>
291 -</ul></td></tr>
292 -</table>
293 -<?php
294 - fwp_option_box_closer();
295 - fwp_linkedit_periodic_submit();
296 -
297 - fwp_option_box_opener('Syndicated Authors', 'authordiv', 'postbox');
298 -
299 - $unfamiliar_author = FeedWordPress::on_unfamiliar('author');
300 - $authorlist = fwp_author_list();
301 -?>
302 -<table>
303 -<tr><th colspan="3" style="text-align: left; padding-top: 1.0em; border-bottom: 1px dotted black;">For posts by authors that haven't been syndicated before:</th></tr>
304 -<tr>
305 - <th style="text-align: left">Posts by new authors</th>
306 - <td>
307 - <select id="unfamiliar-author" name="unfamiliar_author" onchange="flip_newuser('unfamiliar-author');">
308 - <option value="create"<?php if ('create'==$unfamiliar_author) : ?>selected="selected"<?php endif; ?>>create a new author account</option>
309 - <?php foreach ($authorlist as $author_id => $author_name) : ?>
310 - <option value="<?php echo $author_id; ?>"<?php if ($author_id==$unfamiliar_author) : ?>selected="selected"<?php endif; ?>>are assigned to <?php echo $author_name; ?></option>
311 - <?php endforeach; ?>
312 - <option value="newuser">will be assigned to a user named...</option>
313 - <option value="filter"<?php if ('filter'==$unfamiliar_author) : ?>selected="selected"<?php endif; ?>>get filtered out</option>
314 - </select>
315 - </td>
316 - <td>
317 - <div id="unfamiliar-author-default">This is a default setting. You can override it for one or more particular feeds using the Edit link in <a href="admin.php?page=feedwordpress/feedwordpress.php">Syndicated Sites</a></div>
318 - <div id="unfamiliar-author-newuser"><input type="text" name="unfamiliar_author_newuser" value="" /></div>
319 - </td>
320 -</tr>
321 -</table>
322 -
323 -<script>
324 - flip_newuser('unfamiliar-author');
325 -</script>
326 -<?php
327 - fwp_option_box_closer();
328 - fwp_linkedit_periodic_submit();
196 + FeedWordPressSettingsUI::instead_of_posts_box();
197 + FeedWordPressSettingsUI::instead_of_authors_box();
198 + FeedWordPressSettingsUI::instead_of_categories_box();
329 199
330 200 fwp_option_box_opener('Back End', 'backenddiv', 'postbox');
331 201 ?>
332 202 <table class="editform" width="100%" cellspacing="2" cellpadding="5">
333 -<th width="33%" scope="row">Write update notices to PHP logs:</th>
203 +<tr style="vertical-align: top">
204 +<th width="33%" scope="row">Update notices:</th>
334 205 <td width="67%"><select name="update_logging" size="1">
335 -<option value="yes"<?php echo (($update_logging=='yes')?' selected="selected"':''); ?>>yes</option>
336 -<option value="no"<?php echo (($update_logging!='yes')?' selected="selected"':''); ?>>no</option>
206 +<option value="yes"<?php echo (($update_logging=='yes')?' selected="selected"':''); ?>>write to PHP logs</option>
207 +<option value="no"<?php echo (($update_logging!='yes')?' selected="selected"':''); ?>>don't write to PHP logs</option>
337 208 </select></td>
338 209 </tr>
210 +<tr style="vertical-align: top">
211 +<th width="33%" scope="row">Debugging mode:</th>
212 +<td width="67%"><select name="feedwordpress_debug" size="1">
213 +<option value="yes"<?php echo ($feedwordpress_debug ? ' selected="selected"' : ''); ?>>on</option>
214 +<option value="no"<?php echo ($feedwordpress_debug ? '' : ' selected="selected"'); ?>>off</option>
215 +</select>
216 +<p>When debugging mode is <strong>ON</strong>, FeedWordPress displays many diagnostic error messages,
217 +warnings, and notices that are ordinarily suppressed, and turns off all caching of feeds. Use with
218 +caution: this setting is absolutely inappropriate for a production server.</p>
219 +</td>
220 +</tr>
221 +
222 +<tr style="vertical-align: top">
223 +<th width="33%" scope="row">Guid index:</th>
224 +<td width="67%"><input class="button" type="submit" name="create_index" value="Create index on guid column in posts database table" />
225 +<p>Creating this index may significantly improve performance on some large
226 +FeedWordPress installations.</p></td>
227 +</tr>
339 228 </table>
340 229 <?php
341 230 fwp_option_box_closer();
342 231 fwp_linkedit_periodic_submit();
232 + fwp_linkedit_single_submit_closer();
343 233 ?>
344 234 </div>
345 235 </form>
346 -</div>
347 -</div>
236 +
237 +</div> <!-- id="poststuff" -->
238 +</div> <!-- class="wrap" -->
348 239 <?php
349 240 }
350 241
351 242 fwp_syndication_options_page();
352 -?>
243 +