wp/wp-admin/link-add.php
changeset 16 a86126ab1dd4
parent 9 177826044cd9
child 19 3d72ae0968f4
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
     5  * @package WordPress
     5  * @package WordPress
     6  * @subpackage Administration
     6  * @subpackage Administration
     7  */
     7  */
     8 
     8 
     9 /** Load WordPress Administration Bootstrap */
     9 /** Load WordPress Administration Bootstrap */
    10 require_once( dirname( __FILE__ ) . '/admin.php' );
    10 require_once __DIR__ . '/admin.php';
    11 
    11 
    12 if ( ! current_user_can( 'manage_links' ) ) {
    12 if ( ! current_user_can( 'manage_links' ) ) {
    13 	wp_die( __( 'Sorry, you are not allowed to add links to this site.' ) );
    13 	wp_die( __( 'Sorry, you are not allowed to add links to this site.' ) );
    14 }
    14 }
    15 
    15 
    24 if ( wp_is_mobile() ) {
    24 if ( wp_is_mobile() ) {
    25 	wp_enqueue_script( 'jquery-touch-punch' );
    25 	wp_enqueue_script( 'jquery-touch-punch' );
    26 }
    26 }
    27 
    27 
    28 $link = get_default_link_to_edit();
    28 $link = get_default_link_to_edit();
    29 include( ABSPATH . 'wp-admin/edit-link-form.php' );
    29 require ABSPATH . 'wp-admin/edit-link-form.php';
    30 
    30 
    31 require( ABSPATH . 'wp-admin/admin-footer.php' );
    31 require_once ABSPATH . 'wp-admin/admin-footer.php';