From 669df23debef761da5a656977c0bc5365aa162b4 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sun, 26 Oct 2014 02:20:37 +1100 Subject: [PATCH] Display sort order in system status --- includes/admin/settings/class-sp-settings-status.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/admin/settings/class-sp-settings-status.php b/includes/admin/settings/class-sp-settings-status.php index 36a0c0b9..d302080a 100644 --- a/includes/admin/settings/class-sp-settings-status.php +++ b/includes/admin/settings/class-sp-settings-status.php @@ -5,7 +5,7 @@ * @author ThemeBoy * @category Admin * @package SportsPress/Admin - * @version 1.4 + * @version 1.4.1 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly @@ -294,8 +294,10 @@ class SP_Settings_Status extends SP_Settings_Page { 'sp_column', 'orderby' => 'menu_order', 'order' => 'ASC', 'posts_per_page' => -1, 'post_status' => 'any' ) ); - foreach ( $posts as $post ) - $display_posts[] = $post->post_title . ' (' . $post->post_name . ' = ' . get_post_meta( $post->ID, 'sp_equation', true ) . ') [' . $post->menu_order . ']'; + foreach ( $posts as $post ) { + $sort_order = sp_get_post_order( $post->ID ); + $display_posts[] = $post->post_title . ' (' . $post->post_name . ' = ' . get_post_meta( $post->ID, 'sp_equation', true ) . ') [' . $post->menu_order . ']' . ( '—' == $sort_order ? '' : ' {' . $sort_order . '}' ); + } echo implode( ', ', array_map( 'esc_html', $display_posts ) ); ?>