Little fixes

This commit is contained in:
Brian Miyaji
2014-01-23 02:25:48 +11:00
parent 2cc1c3ee6c
commit f21ed7f522
19 changed files with 45 additions and 13 deletions

View File

@@ -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'];