PageRenderTime 44ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-admin/link-add.php

https://bitbucket.org/aqge/deptandashboard
PHP | 30 lines | 16 code | 7 blank | 7 comment | 1 complexity | b181762b6cac54207e9dbc9bf810d0ed MD5 | raw file
Possible License(s): AGPL-1.0, GPL-2.0, LGPL-2.1
  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. ?>