No need to check
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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' ),
|
||||||
)
|
)
|
||||||
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user