link-add.php 747 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Add Link Administration Screen.
  4. *
  5. * @package WordPress
  6. * @subpackage Administration
  7. */
  8. /** Load WordPress Administration Bootstrap */
  9. require_once('./admin.php');
  10. if ( ! current_user_can('manage_links') )
  11. wp_die(__('You do not have sufficient permissions to add links to this site.'));
  12. $title = __('Add New Link');
  13. $parent_file = 'link-manager.php';
  14. wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image',
  15. 'description', 'visible', 'target', 'category', 'link_id',
  16. 'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel',
  17. 'notes', 'linkcheck[]'));
  18. wp_enqueue_script('link');
  19. wp_enqueue_script('xfn');
  20. $link = get_default_link_to_edit();
  21. include('./edit-link-form.php');
  22. require('./admin-footer.php');
  23. ?>