PageRenderTime 49ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/blog/wp-admin/link-add.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 32 lines | 17 code | 8 blank | 7 comment | 2 complexity | 10ba6a17da71b36c6c0a272c05b2fdb1 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.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. if ( wp_is_mobile() )
  21. wp_enqueue_script( 'jquery-touch-punch' );
  22. $link = get_default_link_to_edit();
  23. include('./edit-link-form.php');
  24. require('./admin-footer.php');