Fix misplaced meta boxes
This commit is contained in:
@@ -27,15 +27,6 @@ class SP_Admin_Meta_Boxes {
|
|||||||
*/
|
*/
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
$meta_boxes = array(
|
$meta_boxes = array(
|
||||||
'sp_result' => array(
|
|
||||||
'details' => array(
|
|
||||||
'title' => __( 'Details', 'sportspress' ),
|
|
||||||
'save' => 'SP_Meta_Box_Result_Details::save',
|
|
||||||
'output' => 'SP_Meta_Box_Result_Details::output',
|
|
||||||
'context' => 'normal',
|
|
||||||
'priority' => 'high',
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'sp_outcome' => array(
|
'sp_outcome' => array(
|
||||||
'details' => array(
|
'details' => array(
|
||||||
'title' => __( 'Details', 'sportspress' ),
|
'title' => __( 'Details', 'sportspress' ),
|
||||||
@@ -45,20 +36,11 @@ class SP_Admin_Meta_Boxes {
|
|||||||
'priority' => 'high',
|
'priority' => 'high',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'sp_metric' => array(
|
'sp_result' => array(
|
||||||
'details' => array(
|
'details' => array(
|
||||||
'title' => __( 'Details', 'sportspress' ),
|
'title' => __( 'Details', 'sportspress' ),
|
||||||
'save' => 'SP_Meta_Box_Metric_Details::save',
|
'save' => 'SP_Meta_Box_Result_Details::save',
|
||||||
'output' => 'SP_Meta_Box_Metric_Details::output',
|
'output' => 'SP_Meta_Box_Result_Details::output',
|
||||||
'context' => 'normal',
|
|
||||||
'priority' => 'high',
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'sp_outcome' => array(
|
|
||||||
'details' => array(
|
|
||||||
'title' => __( 'Details', 'sportspress' ),
|
|
||||||
'save' => 'SP_Meta_Box_Metric_Details::save',
|
|
||||||
'output' => 'SP_Meta_Box_Metric_Details::output',
|
|
||||||
'context' => 'normal',
|
'context' => 'normal',
|
||||||
'priority' => 'high',
|
'priority' => 'high',
|
||||||
),
|
),
|
||||||
@@ -72,22 +54,6 @@ class SP_Admin_Meta_Boxes {
|
|||||||
'priority' => 'high',
|
'priority' => 'high',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'sp_statistic' => array(
|
|
||||||
'details' => array(
|
|
||||||
'title' => __( 'Details', 'sportspress' ),
|
|
||||||
'save' => 'SP_Meta_Box_Statistic_Details::save',
|
|
||||||
'output' => 'SP_Meta_Box_Statistic_Details::output',
|
|
||||||
'context' => 'side',
|
|
||||||
'priority' => 'default',
|
|
||||||
),
|
|
||||||
'equation' => array(
|
|
||||||
'title' => __( 'Equation', 'sportspress' ),
|
|
||||||
'save' => 'SP_Meta_Box_Statistic_Equation::save',
|
|
||||||
'output' => 'SP_Meta_Box_Statistic_Equation::output',
|
|
||||||
'context' => 'normal',
|
|
||||||
'priority' => 'high',
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'sp_column' => array(
|
'sp_column' => array(
|
||||||
'details' => array(
|
'details' => array(
|
||||||
'title' => __( 'Details', 'sportspress' ),
|
'title' => __( 'Details', 'sportspress' ),
|
||||||
@@ -104,6 +70,31 @@ class SP_Admin_Meta_Boxes {
|
|||||||
'priority' => 'high',
|
'priority' => 'high',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
'sp_metric' => array(
|
||||||
|
'details' => array(
|
||||||
|
'title' => __( 'Details', 'sportspress' ),
|
||||||
|
'save' => 'SP_Meta_Box_Metric_Details::save',
|
||||||
|
'output' => 'SP_Meta_Box_Metric_Details::output',
|
||||||
|
'context' => 'normal',
|
||||||
|
'priority' => 'high',
|
||||||
|
),
|
||||||
|
),
|
||||||
|
'sp_statistic' => array(
|
||||||
|
'details' => array(
|
||||||
|
'title' => __( 'Details', 'sportspress' ),
|
||||||
|
'save' => 'SP_Meta_Box_Statistic_Details::save',
|
||||||
|
'output' => 'SP_Meta_Box_Statistic_Details::output',
|
||||||
|
'context' => 'side',
|
||||||
|
'priority' => 'default',
|
||||||
|
),
|
||||||
|
'equation' => array(
|
||||||
|
'title' => __( 'Equation', 'sportspress' ),
|
||||||
|
'save' => 'SP_Meta_Box_Statistic_Equation::save',
|
||||||
|
'output' => 'SP_Meta_Box_Statistic_Equation::output',
|
||||||
|
'context' => 'normal',
|
||||||
|
'priority' => 'high',
|
||||||
|
),
|
||||||
|
),
|
||||||
'sp_event' => array(
|
'sp_event' => array(
|
||||||
'shortcode' => array(
|
'shortcode' => array(
|
||||||
'title' => __( 'Shortcodes', 'sportspress' ),
|
'title' => __( 'Shortcodes', 'sportspress' ),
|
||||||
|
|||||||
Reference in New Issue
Block a user