Add Calendars (sp_calendar) and Venues (sp_venue)

This commit is contained in:
Brian Miyaji
2014-01-09 17:10:42 +11:00
parent c6df9ebca0
commit 40b6cc6840
12 changed files with 295 additions and 137 deletions

View File

@@ -1,7 +1,11 @@
<?php
function sportspress_sanitize_title( $title ) {
if ( isset( $_POST ) && array_key_exists( 'taxonomy', $_POST ) ):
return $title;
if ( isset( $_POST ) && array_key_exists( 'post_type', $_POST ) && in_array( $_POST['post_type'], array( 'sp_result', 'sp_outcome', 'sp_column', 'sp_statistic' ) ) ):
elseif ( isset( $_POST ) && array_key_exists( 'post_type', $_POST ) && in_array( $_POST['post_type'], array( 'sp_result', 'sp_outcome', 'sp_column', 'sp_statistic' ) ) ):
$key = $_POST['sp_key'];
@@ -22,4 +26,4 @@ function sportspress_sanitize_title( $title ) {
return $title;
}
add_filter( 'sanitize_title', 'sportspress_sanitize_title' );
//add_filter( 'sanitize_title', 'sportspress_sanitize_title' );