var
/
www
/
html
/
a-wie-aussergewoehnlich.de
/
wp-admin
| uid:33
link.php
[X]
<?php /** * Manage link administration actions. * * This page is accessed by the link management pages and handles the forms and * Ajax processes for link actions. * * @package WordPress * @subpackage Administration */ /** Load WordPress Administration Bootstrap */ require_once __DIR__ . '/admin.php'; $action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : ''; $cat_id = ! empty( $_REQUEST['cat_id'] ) ? absint( $_REQUEST['cat_id'] ) : 0; $link_id = ! empty( $_REQUEST['link_id'] ) ? absint( $_REQUEST['link_id'] ) : 0; if ( ! current_user_can( 'manage_links' ) ) { wp_link_manager_disabled_message(); } if ( ! empty( $_POST['deletebookmarks'] ) ) { $action = 'deletebookmarks'; } if ( ! empty( $_POST['move'] ) ) { $action = 'move'; } if ( ! empty( $_POST['linkcheck'] ) ) { $linkcheck = $_POST['linkcheck']; } $this_file = admin_url( 'link-manager.php' ); switch ( $action ) { case 'deletebookmarks': check_admin_referer( 'bulk-bookmarks' ); // For each link id (in $linkcheck[]) change category to selected value. if ( count( $linkcheck ) === 0 ) { wp_redirect( $this_file ); exit; } $deleted = 0; foreach ( $linkcheck as $link_id ) { $link_id = (int) $link_id; if ( wp_delete_link( $link_id ) ) { ++$deleted; } } wp_redirect( "$this_file?deleted=$deleted" ); exit; case 'move': check_admin_referer( 'bulk-bookmarks' ); // For each link id (in $linkcheck[]) change category to selected value. if ( count( $linkcheck ) === 0 ) { wp_redirect( $this_file ); exit; } $all_links = implode( ',', $linkcheck ); /* * Should now have an array of links we can change: * $q = $wpdb->query("update $wpdb->links SET link_category='$category' WHERE link_id IN ($all_links)"); */ wp_redirect( $this_file ); exit; case 'add': check_admin_referer( 'add-bookmark' ); $redir = wp_get_referer(); if ( add_link() ) { $redir = add_query_arg( 'added', 'true', $redir ); } wp_redirect( $redir ); exit; case 'save': $link_id = (int) $_POST['link_id']; check_admin_referer( 'update-bookmark_' . $link_id ); edit_link( $link_id ); wp_redirect( $this_file ); exit; case 'delete': $link_id = (int) $_GET['link_id']; check_admin_referer( 'delete-bookmark_' . $link_id ); wp_delete_link( $link_id ); wp_redirect( $this_file ); exit; case 'edit': wp_enqueue_script( 'link' ); wp_enqueue_script( 'xfn' ); if ( wp_is_mobile() ) { wp_enqueue_script( 'jquery-touch-punch' ); } $parent_file = 'link-manager.php'; $submenu_file = 'link-manager.php'; // Used in the HTML title tag. $title = __( 'Edit Link' ); $link_id = (int) $_GET['link_id']; $link = get_link_to_edit( $link_id ); if ( ! $link ) { wp_die( __( 'Link not found.' ) ); } require ABSPATH . 'wp-admin/edit-link-form.php'; require_once ABSPATH . 'wp-admin/admin-footer.php'; break; default: break; }
css/
-
O
R
D
images/
-
O
R
D
includes/
-
O
R
D
js/
-
O
R
D
maint/
-
O
R
D
network/
-
O
R
D
user/
-
O
R
D
.htaccess
237
V
E
R
D
about.php
17.7K
V
E
R
D
admin-ajax.php
5K
V
E
R
D
admin-footer.php
2.8K
V
E
R
D
admin-functions.php
479
V
E
R
D
admin-header.php
9.1K
V
E
R
D
admin-post.php
2K
V
E
R
D
async-upload.php
5.5K
V
E
R
D
authorize-application.php
10.1K
V
E
R
D
credits.php
4.4K
V
E
R
D
custom-background.php
489
V
E
R
D
custom-header.php
499
V
E
R
D
edit-comments.php
14.4K
V
E
R
D
edit-form-advanced.php
28.8K
V
E
R
D
edit-form-blocks.php
14.6K
V
E
R
D
edit-form-comment.php
8.3K
V
E
R
D
edit-link-form.php
6.2K
V
E
R
D
edit-tag-form.php
10.4K
V
E
R
D
edit-tags.php
22K
V
E
R
D
erase-personal-data.php
7.3K
V
E
R
D
export-personal-data.php
7.8K
V
E
R
D
freedoms.php
4.8K
V
E
R
D
index.php
7.7K
V
E
R
D
index.php.bak
7.7K
V
E
R
D
install-helper.php
6.8K
V
E
R
D
link-add.php
934
V
E
R
D
link-manager.php
4.3K
V
E
R
D
link-parse-opml.php
2.7K
V
E
R
D
link.php
2.9K
V
E
R
D
load-scripts.php
2K
V
E
R
D
load-styles.php
2.9K
V
E
R
D
media-new.php
3.2K
V
E
R
D
media-upload.php
3.6K
V
E
R
D
menu-header.php
9.8K
V
E
R
D
ms-admin.php
196
V
E
R
D
ms-delete-site.php
4.5K
V
E
R
D
ms-edit.php
216
V
E
R
D
ms-options.php
229
V
E
R
D
ms-sites.php
215
V
E
R
D
ms-themes.php
217
V
E
R
D
ms-upgrade-network.php
219
V
E
R
D
ms-users.php
215
V
E
R
D
my-sites.php
4.7K
V
E
R
D
nav-menus.php
48.2K
V
E
R
D
options-discussion.php
15.9K
V
E
R
D
options-general.php
21.6K
V
E
R
D
options-head.php
621
V
E
R
D
options-media.php
6.4K
V
E
R
D
options-permalink.php
21.2K
V
E
R
D
options-privacy.php
10K
V
E
R
D
options-reading.php
9.9K
V
E
R
D
options-writing.php
9.1K
V
E
R
D
plugin-editor.php
13.8K
V
E
R
D
plugin-install.php
7K
V
E
R
D
plugins.php
30K
V
E
R
D
post-new.php
2.7K
V
E
R
D
press-this.php
2.3K
V
E
R
D
privacy-policy-guide.php
3.7K
V
E
R
D
profile.php
283
V
E
R
D
setup-config.php
17.5K
V
E
R
D
site-editor.php
12K
V
E
R
D
site-health-info.php
4K
V
E
R
D
site-health.php
10.2K
V
E
R
D
theme-editor.php
16.9K
V
E
R
D
theme-install.php
23.4K
V
E
R
D
update-core.php
45.4K
V
E
R
D
upgrade-functions.php
341
V
E
R
D
user-edit.php
40.4K
V
E
R
D
user-new.php
24K
V
E
R
D
widgets-form-blocks.php
5.1K
V
E
R
D
widgets-form.php
19.3K
V
E
R
D