equal
deleted
inserted
replaced
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() ) { |