Little fixes
This commit is contained in:
@@ -7,7 +7,7 @@ function sportspress_sanitize_title( $title ) {
|
||||
|
||||
elseif ( isset( $_POST ) && array_key_exists( 'post_type', $_POST ) && in_array( $_POST['post_type'], array( 'sp_result', 'sp_outcome', 'sp_column', 'sp_statistic', 'sp_metric' ) ) ):
|
||||
|
||||
$key = $_POST['sp_key'];
|
||||
$key = isset( $_POST['sp_key'] ) ? $_POST['sp_key'] : null;
|
||||
|
||||
if ( ! $key ) $key = $_POST['post_title'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user