PageRenderTime 15ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/wp-admin/link-add.php

https://bitbucket.org/space87/wordpressstart
PHP | 32 lines | 17 code | 8 blank | 7 comment | 2 complexity | 10ba6a17da71b36c6c0a272c05b2fdb1 MD5 | raw file
 1<?php
 2/**
 3 * Add Link Administration Screen.
 4 *
 5 * @package WordPress
 6 * @subpackage Administration
 7 */
 8
 9/** Load WordPress Administration Bootstrap */
10require_once('./admin.php');
11
12if ( ! current_user_can('manage_links') )
13	wp_die(__('You do not have sufficient permissions to add links to this site.'));
14
15$title = __('Add New Link');
16$parent_file = 'link-manager.php';
17
18wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image',
19	'description', 'visible', 'target', 'category', 'link_id',
20	'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel',
21	'notes', 'linkcheck[]'));
22
23wp_enqueue_script('link');
24wp_enqueue_script('xfn');
25
26if ( wp_is_mobile() )
27	wp_enqueue_script( 'jquery-touch-punch' );
28
29$link = get_default_link_to_edit();
30include('./edit-link-form.php');
31
32require('./admin-footer.php');