No need to check

This commit is contained in:
Brian Miyaji
2015-01-28 15:40:12 +11:00
parent a2aa6470fb
commit d64ef2f2a8
2 changed files with 2 additions and 10 deletions

View File

@@ -294,15 +294,9 @@ class SP_Admin_Meta_Boxes {
* Rename core meta boxes * Rename core meta boxes
*/ */
public function rename_meta_boxes() { public function rename_meta_boxes() {
global $post;
// Publish/Event
if ( isset( $post ) ) {
remove_meta_box( 'submitdiv', 'sp_event', 'side' ); remove_meta_box( 'submitdiv', 'sp_event', 'side' );
add_meta_box( 'submitdiv', __( 'Event', 'sportspress' ), 'post_submit_meta_box', 'sp_event', 'side', 'high' ); add_meta_box( 'submitdiv', __( 'Event', 'sportspress' ), 'post_submit_meta_box', 'sp_event', 'side', 'high' );
} }
}
/** /**
* Check if we're saving, then trigger an action based on the post type * Check if we're saving, then trigger an action based on the post type

View File

@@ -182,7 +182,6 @@ class SportsPress_League_Tables {
*/ */
public function add_settings( $settings ) { public function add_settings( $settings ) {
return array_merge( $settings, return array_merge( $settings,
array( array(
array( 'title' => __( 'League Tables', 'sportspress' ), 'type' => 'title', 'id' => 'table_options' ), array( 'title' => __( 'League Tables', 'sportspress' ), 'type' => 'title', 'id' => 'table_options' ),
), ),
@@ -221,7 +220,6 @@ class SportsPress_League_Tables {
array( array(
array( 'type' => 'sectionend', 'id' => 'table_options' ), array( 'type' => 'sectionend', 'id' => 'table_options' ),
) )
); );
} }
} }