Skip to content
Snippets Groups Projects
Select Git revision
  • noblogs default
  • noblogs-5.7.1
  • upstream
  • noblogs-5.7
  • noblogs-5.6new
  • upstream5.5.1
  • noblogs28dic
  • upstream28dic
  • noblogs-5.5.1
  • noblogs-5.4.2
  • noblogs-5.4_seconda
  • noblogs-5.4
  • noblogs-7c
  • wp5.2.3p3
  • mergedbconf
  • noblogs-5.7.1
  • noblogs.5.7.0p1
  • noblogs-5.7.0
  • noblogs-5.6p3
  • noblogs5.6p2
  • noblogs-5.6p1
  • noblogs-5.6
  • noblogs-5.4.2p1
  • noblogs-5.4.2
  • noblogs-5.4.1
  • noblogs-5.4
  • noblogs-p5.4
  • noblogs-5.3.2p2
  • noblogs-5.3.2p1
  • noblogs-5.3.2
  • noblogs-5.3
  • noblogs-5.2.3p4
  • noblogs-5.2.3p3
  • noblogs-5.2.3p2
  • noblogs-5.2.3p1
35 results

link-add.php

Blame
  • link-add.php 711 B
    <?php
    /**
     * Add Link Administration Screen.
     *
     * @package WordPress
     * @subpackage Administration
     */
    
    /** Load WordPress Administration Bootstrap */
    require_once __DIR__ . '/admin.php';
    
    if ( ! current_user_can( 'manage_links' ) ) {
    	wp_die( __( 'Sorry, you are not allowed to add links to this site.' ) );
    }
    
    $title       = __( 'Add New Link' );
    $parent_file = 'link-manager.php';
    
    wp_reset_vars( array( 'action', 'cat_id', 'link_id' ) );
    
    wp_enqueue_script( 'link' );
    wp_enqueue_script( 'xfn' );
    
    if ( wp_is_mobile() ) {
    	wp_enqueue_script( 'jquery-touch-punch' );
    }
    
    $link = get_default_link_to_edit();
    require ABSPATH . 'wp-admin/edit-link-form.php';
    
    require_once ABSPATH . 'wp-admin/admin-footer.php';