Fix presets, config post types and Japanese translations

This commit is contained in:
Brian Miyaji
2014-01-05 20:37:08 +11:00
parent c370e352a4
commit f49ec03546
34 changed files with 1507 additions and 1914 deletions

View File

@@ -61,7 +61,11 @@ function sp_sanitize_title( $title ) {
if ( isset( $_POST ) && array_key_exists( 'post_type', $_POST ) && in_array( $_POST['post_type'], array( 'sp_result', 'sp_outcome', 'sp_column', 'sp_statistic' ) ) ):
$title = sp_get_eos_safe_slug( $_POST['post_title'], $_POST['ID'] );
$key = $_POST['sp_key'];
if ( ! $key ) $key = $_POST['post_title'];
$title = sp_get_eos_safe_slug( $key, $_POST['ID'] );
elseif ( isset( $_POST ) && array_key_exists( 'post_type', $_POST ) && $_POST['post_type'] == 'sp_event' ):