- C6CA0857A2B4EF3E34586AB128BD6AFD3E0ED1176406E6823249F498365D5BA8EFE10F48F1495635AE6D14A2D5B4FEF6957A5D7038D21813B1EE1209AC8A1C38
+ FB582E251778615E026DE4123F4B1086E3814C2C774169651E797E7AF955CFB90BFF47F8F8E96E4A71D760CD36C02085D0B771265C0D9DA42D60DDA8777F411A
mp-wp/wp-admin/edit-link-form.php
(85 . 7)(85 . 7)
9219 <div id="delete-action">
9220 <?php
9221 if ( !empty($_GET['action']) && 'edit' == $_GET['action'] && current_user_can('manage_links') ) { ?>
9222 <a class="submitdelete deletion" href="<?php echo wp_nonce_url("link.php?action=delete&link_id=$link->link_id", 'delete-bookmark_' . $link->link_id); ?>" onclick="if ( confirm('<?php echo js_escape(sprintf(__("You are about to delete this link '%s'\n 'Cancel' to stop, 'OK' to delete."), $link->link_name )); ?>') ) {return true;}return false;"><?php _e('Delete'); ?></a>
9223 <a class="submitdelete deletion" href="<?php echo wp_nonce_url("link.php?action=delete&link_id=$link->link_id", 'delete-bookmark_' . $link->link_id); ?>"><?php _e('Delete'); ?></a>
9224 <?php } ?>
9225 </div>
9226
(113 . 23)(113 . 7)
9228 * @param object $link
9229 */
9230 function link_categories_meta_box($link) { ?>
9231 <div id="category-adder" class="wp-hidden-children">
9232 <h4><a id="category-add-toggle" href="#category-add"><?php _e( '+ Add New Category' ); ?></a></h4>
9233 <p id="link-category-add" class="wp-hidden-child">
9234 <label class="hidden" for="newcat"><?php _e( '+ Add New Category' ); ?></label>
9235 <input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" aria-required="true" />
9236 <input type="button" id="category-add-sumbit" class="add:categorychecklist:linkcategorydiv button" value="<?php _e( 'Add' ); ?>" />
9237 <?php wp_nonce_field( 'add-link-category', '_ajax_nonce', false ); ?>
9238 <span id="category-ajax-response"></span>
9239 </p>
9240 </div>
9241
9242 <ul id="category-tabs">
9243 <li class="ui-tabs-selected"><a href="#categories-all"><?php _e( 'All Categories' ); ?></a></li>
9244 <li class="hide-if-no-js"><a href="#categories-pop"><?php _e( 'Most Used' ); ?></a></li>
9245 </ul>
9246
9247 <div id="categories-all" class="ui-tabs-panel">
9248 <div id="categories-all">
9249 <ul id="categorychecklist" class="list:category categorychecklist form-no-clear">
9250 <?php
9251 if ( isset($link->link_id) )
(139 . 12)(123 . 6)
9253 ?>
9254 </ul>
9255 </div>
9256
9257 <div id="categories-pop" class="ui-tabs-panel" style="display: none;">
9258 <ul id="categorychecklist-pop" class="categorychecklist form-no-clear">
9259 <?php wp_popular_terms_checklist('link_category'); ?>
9260 </ul>
9261 </div>
9262 <?php
9263 }
9264 add_meta_box('linkcategorydiv', __('Categories'), 'link_categories_meta_box', 'link', 'normal', 'core');