author | ymh <ymh.work@gmail.com> |
Mon, 14 Oct 2019 17:39:30 +0200 | |
changeset 7 | cf61fcea0001 |
parent 0 | d970ebf37754 |
child 9 | 177826044cd9 |
permissions | -rw-r--r-- |
0 | 1 |
<?php |
2 |
/** |
|
3 |
* Add Link Administration Screen. |
|
4 |
* |
|
5 |
* @package WordPress |
|
6 |
* @subpackage Administration |
|
7 |
*/ |
|
8 |
||
9 |
/** Load WordPress Administration Bootstrap */ |
|
10 |
require_once( dirname( __FILE__ ) . '/admin.php' ); |
|
11 |
||
12 |
if ( ! current_user_can('manage_links') ) |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
13 |
wp_die(__('Sorry, you are not allowed to add links to this site.')); |
0 | 14 |
|
15 |
$title = __('Add New Link'); |
|
16 |
$parent_file = 'link-manager.php'; |
|
17 |
||
18 |
wp_reset_vars( array('action', 'cat_id', 'link_id' ) ); |
|
19 |
||
20 |
wp_enqueue_script('link'); |
|
21 |
wp_enqueue_script('xfn'); |
|
22 |
||
23 |
if ( wp_is_mobile() ) |
|
24 |
wp_enqueue_script( 'jquery-touch-punch' ); |
|
25 |
||
26 |
$link = get_default_link_to_edit(); |
|
27 |
include( ABSPATH . 'wp-admin/edit-link-form.php' ); |
|
28 |
||
29 |
require( ABSPATH . 'wp-admin/admin-footer.php' ); |