Default tables and lists to auto
This commit is contained in:
@@ -28,10 +28,6 @@ class SP_Meta_Box_List_Details {
|
||||
$order = get_post_meta( $post->ID, 'sp_order', true );
|
||||
$select = get_post_meta( $post->ID, 'sp_select', true );
|
||||
$number = get_post_meta( $post->ID, 'sp_number', true );
|
||||
if ( ! $select ) {
|
||||
global $pagenow;
|
||||
$select = ( 'post-new.php' == $pagenow ? 'auto' : 'manual' );
|
||||
}
|
||||
?>
|
||||
<div>
|
||||
<p><strong><?php _e( 'Heading', 'sportspress' ); ?></strong></p>
|
||||
|
||||
@@ -24,10 +24,6 @@ class SP_Meta_Box_Table_Details {
|
||||
$caption = get_post_meta( $post->ID, 'sp_caption', true );
|
||||
$select = get_post_meta( $post->ID, 'sp_select', true );
|
||||
$post_type = sp_get_post_mode_type( $post->ID );
|
||||
if ( ! $select ) {
|
||||
global $pagenow;
|
||||
$select = ( 'post-new.php' ? 'auto' : 'manual' );
|
||||
}
|
||||
?>
|
||||
<div>
|
||||
<p><strong><?php _e( 'Heading', 'sportspress' ); ?></strong></p>
|
||||
|
||||
Reference in New Issue
Block a user