[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-admin/ -> link-add.php (source)

   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  // Used in the HTML title tag.
  17  $title       = __( 'Add New Link' );
  18  $parent_file = 'link-manager.php';
  19  
  20  wp_reset_vars( array( 'action', 'cat_id', 'link_id' ) );
  21  
  22  wp_enqueue_script( 'link' );
  23  wp_enqueue_script( 'xfn' );
  24  
  25  if ( wp_is_mobile() ) {
  26      wp_enqueue_script( 'jquery-touch-punch' );
  27  }
  28  
  29  $link = get_default_link_to_edit();
  30  require ABSPATH . 'wp-admin/edit-link-form.php';
  31  
  32  require_once ABSPATH . 'wp-admin/admin-footer.php';


Generated: Sun Sep 26 01:00:08 2021 Cross-referenced by PHPXref 0.7.1