Define main SportsPress class

This commit is contained in:
Brian Miyaji
2014-03-25 00:19:34 +11:00
parent 6e778ad40c
commit 6db3e82d66
16 changed files with 357 additions and 168 deletions

View File

@@ -3,7 +3,7 @@ function sportspress_save_post( $post_id ) {
global $post, $typenow;
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return $post_id;
if ( !current_user_can( 'edit_post', $post_id ) ) return $post_id;
if ( !isset( $_POST['sportspress_nonce'] ) || ! wp_verify_nonce( $_POST['sportspress_nonce'], SPORTSPRESS_PLUGIN_BASENAME ) ) return $post_id;
if ( !isset( $_POST['sportspress_nonce'] ) || ! wp_verify_nonce( $_POST['sportspress_nonce'], plugin_basename( SP_PLUGIN_FILE ) ) ) return $post_id;
switch ( $_POST['post_type'] ):
case ( 'sp_team' ):