Treat empty orderby as auto

This commit is contained in:
Brian Miyaji
2021-09-30 17:38:22 +09:00
parent 6e1b11ca98
commit 33c6f838f8

View File

@@ -117,7 +117,7 @@ class SP_Meta_Box_Table_Details {
sp_dropdown_pages( $args );
?>
</p>
<div id="sp_order" <?php echo ( $orderby === 'default' ? 'style="display: none;"' : '' ); ?>>
<div id="sp_order" <?php echo ( $orderby === 'default' || $orderby === '' ? 'style="display: none;"' : '' ); ?>>
<p><strong><?php _e( 'Sort Order', 'sportspress' ); ?></strong></p>
<p>
<select name="sp_order">