From 97d19f14b41b1eb405bb34228541eb08ed5ba59d Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Tue, 25 Oct 2016 16:45:40 +1100 Subject: [PATCH] Disable numerical slug generation for events --- includes/sp-template-hooks.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/includes/sp-template-hooks.php b/includes/sp-template-hooks.php index a6b225e0..5ebadea7 100644 --- a/includes/sp-template-hooks.php +++ b/includes/sp-template-hooks.php @@ -312,15 +312,6 @@ function sportspress_sanitize_title( $title ) { $title = sp_get_eos_safe_slug( $key, $id ); - elseif ( isset( $_POST ) && array_key_exists( 'post_type', $_POST ) && $_POST['post_type'] == 'sp_event' ): - - // Auto slug generation - if ( $_POST['post_title'] == '' && ( $_POST['post_name'] == '' || is_int( $_POST['post_name'] ) ) ): - - $title = ''; - - endif; - endif; return $title;