[ Index ]

PHP Cross Reference of Wordpress 2.9.1

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Add Link Administration Panel.
   4   *
   5   * @package WordPress
   6   * @subpackage Administration
   7   */
   8  
   9  /** Load WordPress Administration Bootstrap */
  10  require_once ('admin.php');
  11  
  12  if ( ! current_user_can('manage_links') )
  13      wp_die(__('You do not have sufficient permissions to add links to this blog.'));
  14  
  15  $title = __('Add New Link');
  16  $parent_file = 'link-manager.php';
  17  
  18  wp_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  
  23  wp_enqueue_script('link');
  24  wp_enqueue_script('xfn');
  25  
  26  $link = get_default_link_to_edit();
  27  include ('edit-link-form.php');
  28  
  29  require ('admin-footer.php');
  30  ?>


Generated: Fri Jan 8 00:19:48 2010 Cross-referenced by PHPXref 0.7