angelovcom.net

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

link-add.php (711B)


      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 __DIR__ . '/admin.php';
     11 
     12 if ( ! current_user_can( 'manage_links' ) ) {
     13 	wp_die( __( 'Sorry, you are not allowed to add links to this site.' ) );
     14 }
     15 
     16 $title       = __( 'Add New Link' );
     17 $parent_file = 'link-manager.php';
     18 
     19 wp_reset_vars( array( 'action', 'cat_id', 'link_id' ) );
     20 
     21 wp_enqueue_script( 'link' );
     22 wp_enqueue_script( 'xfn' );
     23 
     24 if ( wp_is_mobile() ) {
     25 	wp_enqueue_script( 'jquery-touch-punch' );
     26 }
     27 
     28 $link = get_default_link_to_edit();
     29 require ABSPATH . 'wp-admin/edit-link-form.php';
     30 
     31 require_once ABSPATH . 'wp-admin/admin-footer.php';