Move add post helper into its own function

This commit is contained in:
Takumi
2013-07-28 22:21:27 +10:00
parent 687a936ca2
commit 0a67204b35
4 changed files with 24 additions and 15 deletions

View File

@@ -25,7 +25,8 @@ function sp_staff_meta_init() {
add_meta_box( 'sp_profilediv', __( 'Profile' ), 'sp_staff_profile_meta', 'sp_staff', 'normal', 'high' );
}
function sp_staff_team_meta( $post ) {
sp_post_checklist( $post->ID, 'sp_team', true );
sp_post_checklist( $post->ID, 'sp_team' );
sp_post_adder( 'sp_team' );
sp_nonce();
}