equal
deleted
inserted
replaced
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 |
16 // Used in the HTML title tag. |
16 // Used in the HTML title tag. |
17 $title = __( 'Add New Link' ); |
17 $title = __( 'Add Link' ); |
18 $parent_file = 'link-manager.php'; |
18 $parent_file = 'link-manager.php'; |
19 |
19 |
20 $action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : ''; |
20 $action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : ''; |
21 $cat_id = ! empty( $_REQUEST['cat_id'] ) ? absint( $_REQUEST['cat_id'] ) : 0; |
21 $cat_id = ! empty( $_REQUEST['cat_id'] ) ? absint( $_REQUEST['cat_id'] ) : 0; |
22 $link_id = ! empty( $_REQUEST['link_id'] ) ? absint( $_REQUEST['link_id'] ) : 0; |
22 $link_id = ! empty( $_REQUEST['link_id'] ) ? absint( $_REQUEST['link_id'] ) : 0; |