- 90664A96EC1D26CE86AD8E99DA462F7E56744A397222D3EF6FA8FE901F31EA64EC9040127235FE9F4B4F7F1623F61E4F99D4F36BE3D87E32AB86A1BC2F1DACF3+ 21FE36F8B1CB3F3FF6F472D3C6DF985E0E197D68B36917CF3266F79070EF726861D28E6063C84FA09B2A46BAA18F91C8A95497B8F7E2B64BB2E34176215DD826mp-wp/wp-admin/link-manager.php(12 . 7)(12 . 7)
29173 // Handle bulk deletes
29174 if ( isset($_GET['action']) && isset($_GET['linkcheck']) ) {
29175 check_admin_referer('bulk-bookmarks');
29176 $doaction = $_GET['action'] ? $_GET['action'] : $_GET['action2'];
29177 $doaction = $_GET['action'];
29178
29179 if ( ! current_user_can('manage_links') )
29180 wp_die( __('You do not have sufficient permissions to edit the links for this blog.') );
(152 . 13)(152 . 6)
29182 <?php print_column_headers('link-manager'); ?>
29183 </tr>
29184 </thead>
29185
29186 <tfoot>
29187 <tr>
29188 <?php print_column_headers('link-manager', false); ?>
29189 </tr>
29190 </tfoot>
29191
29192 <tbody>
29193 <?php
29194 $alt = 0;
(190 . 14)(183 . 14)
29196
29197 switch($column_name) {
29198 case 'cb':
29199 echo '<th scope="row" class="check-column"><input type="checkbox" name="linkcheck[]" value="'.$link->link_id.'" /></th>';
29200 echo '<td scope="row" class="check-column"><input type="checkbox" name="linkcheck[]" value="'.$link->link_id.'" /></td>';
29201 break;
29202 case 'name':
29203
29204 echo "<td $attributes><strong><a class='row-title' href='$edit_link' title='" . attribute_escape(sprintf(__('Edit "%s"'), $link->link_name)) . "'>$link->link_name</a></strong><br />";
29205 $actions = array();
29206 $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>';
29207 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("link.php?action=delete&link_id=$link->link_id", 'delete-bookmark_' . $link->link_id) . "' onclick=\"if ( confirm('" . 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;\">" . __('Delete') . "</a>";
29208 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("link.php?action=delete&link_id=$link->link_id", 'delete-bookmark_' . $link->link_id) . "'>" . __('Delete') . "</a>";
29209 $action_count = count($actions);
29210 $i = 0;
29211 echo '<div class="row-actions">';
(251 . 39)(244 . 8)
29213 <p><?php _e('No links found.') ?></p>
29214 <?php } ?>
29215
29216 <div class="tablenav">
29217
29218 <div class="alignleft actions">
29219 <select name="action2">
29220 <option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
29221 <option value="delete"><?php _e('Delete'); ?></option>
29222 </select>
29223 <input type="submit" value="<?php _e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
29224 </div>
29225
29226 <br class="clear" />
29227 </div>
29228
29229 </form>
29230
29231 <div id="ajax-response"></div>
29232
29233 </div>
29234
29235 <script type="text/javascript">
29236 /* <![CDATA[ */
29237 (function($){
29238 $(document).ready(function(){
29239 $('#doaction, #doaction2').click(function(){
29240 if ( $('select[name^="action"]').val() == 'delete' ) {
29241 var m = '<?php echo js_escape(__("You are about to delete the selected links.\n 'Cancel' to stop, 'OK' to delete.")); ?>';
29242 return showNotice.warn(m);
29243 }
29244 });
29245 });
29246 })(jQuery);
29247 columns.init('link-manager');
29248 /* ]]> */
29249 </script>
29250
29251 <?php include('admin-footer.php'); ?>