wp/wp-admin/link-add.php
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
child 22 8c2e4d02f4ef
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
    15 
    15 
    16 // Used in the HTML title tag.
    16 // Used in the HTML title tag.
    17 $title       = __( 'Add New Link' );
    17 $title       = __( 'Add New Link' );
    18 $parent_file = 'link-manager.php';
    18 $parent_file = 'link-manager.php';
    19 
    19 
    20 wp_reset_vars( array( 'action', 'cat_id', 'link_id' ) );
    20 $action  = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
       
    21 $cat_id  = ! empty( $_REQUEST['cat_id'] ) ? absint( $_REQUEST['cat_id'] ) : 0;
       
    22 $link_id = ! empty( $_REQUEST['link_id'] ) ? absint( $_REQUEST['link_id'] ) : 0;
    21 
    23 
    22 wp_enqueue_script( 'link' );
    24 wp_enqueue_script( 'link' );
    23 wp_enqueue_script( 'xfn' );
    25 wp_enqueue_script( 'xfn' );
    24 
    26 
    25 if ( wp_is_mobile() ) {
    27 if ( wp_is_mobile() ) {