| @@ -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( |