wp/wp-admin/term.php
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
    18 
    18 
    19 	if ( 'post' !== get_current_screen()->post_type ) {
    19 	if ( 'post' !== get_current_screen()->post_type ) {
    20 		$sendback = add_query_arg( 'post_type', get_current_screen()->post_type, $sendback );
    20 		$sendback = add_query_arg( 'post_type', get_current_screen()->post_type, $sendback );
    21 	}
    21 	}
    22 
    22 
    23 	wp_redirect( esc_url_raw( $sendback ) );
    23 	wp_redirect( sanitize_url( $sendback ) );
    24 	exit;
    24 	exit;
    25 }
    25 }
    26 
    26 
    27 $tag_ID = absint( $_REQUEST['tag_ID'] );
    27 $tag_ID = absint( $_REQUEST['tag_ID'] );
    28 $tag    = get_term( $tag_ID, $taxnow, OBJECT, 'edit' );
    28 $tag    = get_term( $tag_ID, $taxnow, OBJECT, 'edit' );