PluginProbe
FeedWordPress / 2010.0528
FeedWordPress v2010.0528
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 | authors-page.php +8 -18 2009.11122010.0528 View file →
@@ -288,26 +288,16 @@
288 288 $link->settings['map authors']['name'][$name] = $author_action;
289 289 endif;
290 290 endif;
291 291 endif;
292 -
293 - $alter[] = "link_notes = '".$wpdb->escape($link->settings_to_notes())."'";
294 -
295 - $alter_set = implode(", ", $alter);
296 -
297 - // issue update query
298 - $result = $wpdb->query("
299 - UPDATE $wpdb->links
300 - SET $alter_set
301 - WHERE link_id='$link_id'
302 - ");
292 +
293 + // Save settings
294 + $link->save_settings(/*reload=*/ true);
303 295 $updated_link = true;
304 -
305 - // reload link information from DB
306 - if (function_exists('clean_bookmark_cache')) :
307 - clean_bookmark_cache($link_id);
308 - endif;
309 - $link =& new SyndicatedLink($link_id);
296 +
297 + // Reset, reload
298 + unset($link);
299 + $link = new SyndicatedLink($link_id);
310 300 else :
311 301 if ('newuser'==$GLOBALS['fwp_post']['unfamiliar_author']) :
312 302 $newuser_name = trim($GLOBALS['fwp_post']['unfamiliar_author_newuser']);
313 303 if (strlen($newuser_name) > 0) :
@@ -360,9 +350,9 @@
360 350 if ($updated_link) :
361 351 ?>
362 352 <div class="updated"><p>Syndicated author settings updated.</p></div>
363 353 <?php elseif (!is_null($mesg)) : ?>
364 -<div class="updated"><p><?php print wp_specialchars($mesg, 1); ?></p></div>
354 +<div class="updated"><p><?php print esc_html($mesg); ?></p></div>
365 355 <?php endif;
366 356
367 357 if (function_exists('add_meta_box')) :
368 358 add_action(