From 5b0e30221f82d267d50c3ea3a7103a2d7273a1d4 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Mon, 6 Jan 2014 14:52:29 +1100 Subject: [PATCH] Fix error when saving configs --- sportspress-filters.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sportspress-filters.php b/sportspress-filters.php index 9b96013e..583ba8a3 100644 --- a/sportspress-filters.php +++ b/sportspress-filters.php @@ -65,7 +65,7 @@ function sp_sanitize_title( $title ) { if ( ! $key ) $key = $_POST['post_title']; - $title = sp_get_eos_safe_slug( $key, $_POST['ID'] ); + $title = sp_get_eos_safe_slug( $key, sp_array_value( $_POST, 'ID', 'var' ) ); elseif ( isset( $_POST ) && array_key_exists( 'post_type', $_POST ) && $_POST['post_type'] == 'sp_event' ):