- EEB0F56F6AEB162762816414E04EBDDAD0A32DD8EBA218E894EB229E69312EA1E2318782A44DCBD359676D58F2B3A189D6E23BDDF52779A97505395FAA91F6DD
+ 448B8A27B097CA9EEBDB6ED55CC37638825A239CA846C9AAC418339678E5DC860D2DE514C44BE18D66E071CEC0B70F89F750357BE013DAEBB60AA89318EF4661
mp-wp/wp-admin/edit-link-categories.php
(12 . 7)(12 . 7)
9118 // Handle bulk actions
9119 if ( isset($_GET['action']) && isset($_GET['delete']) ) {
9120 check_admin_referer('bulk-link-categories');
9121 $doaction = $_GET['action'] ? $_GET['action'] : $_GET['action2'];
9122 $doaction = $_GET['action'];
9123
9124 if ( !current_user_can('manage_categories') )
9125 wp_die(__('Cheatin’ uh?'));
(46 . 10)(46 . 6)
9127
9128 $title = __('Link Categories');
9129
9130 wp_enqueue_script('admin-categories');
9131 if ( current_user_can('manage_categories') )
9132 wp_enqueue_script('inline-edit-tax');
9133
9134 require_once ('admin-header.php');
9135
9136 $messages[1] = __('Category added.');
(127 . 13)(123 . 6)
9138 <?php print_column_headers('edit-link-categories'); ?>
9139 </tr>
9140 </thead>
9141
9142 <tfoot>
9143 <tr>
9144 <?php print_column_headers('edit-link-categories', false); ?>
9145 </tr>
9146 </tfoot>
9147
9148 <tbody id="the-list" class="list:link-cat">
9149 <?php
9150 $start = ($pagenum - 1) * $catsperpage;
(155 . 22)(144 . 6)
9152 </tbody>
9153 </table>
9154
9155 <div class="tablenav">
9156 <?php
9157 if ( $page_links )
9158 echo "<div class='tablenav-pages'>$page_links</div>";
9159 ?>
9160
9161 <div class="alignleft actions">
9162 <select name="action2">
9163 <option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
9164 <option value="delete"><?php _e('Delete'); ?></option>
9165 </select>
9166 <input type="submit" value="<?php _e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
9167 </div>
9168
9169 <br class="clear" />
9170 </div>
9171 <br class="clear" />
9172 </form>
9173
(190 . 7)(163 . 6)
9175
9176 <div class="form-wrap">
9177 <h3><?php _e('Add Category'); ?></h3>
9178 <div id="ajax-response"></div>
9179 <form name="addcat" id="addcat" class="add:the-list: validate" method="post" action="link-category.php">
9180 <input type="hidden" name="action" value="addcat" />
9181 <?php wp_original_referer_field(true, 'previous'); wp_nonce_field('add-link-category'); ?>
(223 . 21)(195 . 4)
9183
9184 </div><!-- /col-container -->
9185 </div><!-- /wrap -->
9186
9187 <script type="text/javascript">
9188 /* <![CDATA[ */
9189 (function($){
9190 $(document).ready(function(){
9191 $('#doaction, #doaction2').click(function(){
9192 if ( $('select[name^="action"]').val() == 'delete' ) {
9193 var m = '<?php echo js_escape(__("You are about to delete the selected link categories.\n 'Cancel' to stop, 'OK' to delete.")); ?>';
9194 return showNotice.warn(m);
9195 }
9196 });
9197 });
9198 })(jQuery);
9199 /* ]]> */
9200 </script>
9201
9202 <?php inline_edit_term_row('edit-link-categories'); ?>
9203 <?php include('admin-footer.php'); ?>