| @@ -163,25 +163,15 @@ | ||
| 163 | 163 | unset($link->settings['cat_split']); |
| 164 | 164 | endif; |
| 165 | 165 | endif; |
| 166 | 166 | |
| 167 | - $alter[] = "link_notes = '".$wpdb->escape($link->settings_to_notes())."'"; | |
| 168 | - | |
| 169 | - $alter_set = implode(", ", $alter); | |
| 170 | - | |
| 171 | - // issue update query | |
| 172 | - $result = $wpdb->query(" | |
| 173 | - UPDATE $wpdb->links | |
| 174 | - SET $alter_set | |
| 175 | - WHERE link_id='$link_id' | |
| 176 | - "); | |
| 167 | + // Save settings | |
| 168 | + $link->save_settings(/*reload=*/ true); | |
| 177 | 169 | $catsPage->updated = true; |
| 178 | - | |
| 179 | - // reload link information from DB | |
| 180 | - if (function_exists('clean_bookmark_cache')) : | |
| 181 | - clean_bookmark_cache($link_id); | |
| 182 | - endif; | |
| 183 | - $link =& new SyndicatedLink($link_id); | |
| 170 | + | |
| 171 | + // Reset, reload | |
| 172 | + unset($link); | |
| 173 | + $link = new SyndicatedLink($link_id); | |
| 184 | 174 | else : |
| 185 | 175 | // Categories |
| 186 | 176 | if (!empty($saveCats)) : |
| 187 | 177 | update_option('feedwordpress_syndication_cats', implode(FEEDWORDPRESS_CAT_SEPARATOR, $saveCats)); |
| @@ -259,21 +249,8 @@ | ||
| 259 | 249 | ?> |
| 260 | 250 | </div> <!-- class="metabox-holder" --> |
| 261 | 251 | </div> <!-- id="post-body" --> |
| 262 | 252 | <?php $catsPage->close_sheet(); ?> |
| 263 | - | |
| 264 | -<script type="text/javascript"> | |
| 265 | - contextual_appearance('unfamiliar-author', 'unfamiliar-author-newuser', 'unfamiliar-author-default', 'newuser', 'inline'); | |
| 266 | -<?php if (is_object($link) and $link->found()) : ?> | |
| 267 | -<?php for ($j=1; $j<=$i; $j++) : ?> | |
| 268 | - contextual_appearance('author-rules-<?php echo $j; ?>', 'author-rules-<?php echo $j; ?>-newuser', 'author-rules-<?php echo $j; ?>-default', 'newuser', 'inline'); | |
| 269 | -<?php endfor; ?> | |
| 270 | - contextual_appearance('add-author-rule', 'add-author-rule-newuser', 'add-author-rule-default', 'newuser', 'inline'); | |
| 271 | - contextual_appearance('fix-mismatch-to', 'fix-mismatch-to-newuser', null, 'newuser', 'inline'); | |
| 272 | -<?php else : ?> | |
| 273 | - contextual_appearance('match-author-by-email', 'unless-null-email', null, 'yes', 'block', /*checkbox=*/ true); | |
| 274 | -<?php endif; ?> | |
| 275 | -</script> | |
| 276 | 253 | <?php |
| 277 | 254 | } /* function fwp_categories_page () */ |
| 278 | 255 | |
| 279 | 256 | fwp_categories_page(); |