PluginProbe
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin / 1.1.12
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin v1.1.12
1.1.12 1.1.11 1.1.10 1.1.9 1.1.8 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.1 1.0.0 0.9.8 0.9.7 0.9.6 0.9.4 0.9.5 0.9.3 0.9.2 0.9.1 0.9.0 0.8.9 All 36 releases
← All changes | apps/my-wordpress/parts/woocommerce.php +8 -3 1.1.8 → 1.1.12 View file →
@@ -220,11 +220,11 @@
220 220
221 221 /**
222 222 * One order as an app list row. The title is what a merchant scans
223 223 * for — number and total — and the REAL status rides `wcStatus` for
224 - * the band assigner, never `status`: the tile ribbon only speaks
225 - * draft/pending/private/future, and `wc-processing` would paint a
226 - * meaningless ribbon on every order.
224 + * the band assigner and the list view, never `status`: the tile
225 + * ribbon only speaks draft/pending/private/future, and `wc-processing`
226 + * would paint a meaningless ribbon on every order.
227 227 *
228 228 * @param \WC_Abstract_Order $order Order.
229 229 * @return array<string,mixed>
230 230 */
@@ -262,8 +262,13 @@
262 262 'lockedBy' => '',
263 263 'canEdit' => method_exists( $order, 'get_edit_order_url' ),
264 264 'canDelete' => false,
265 265 'wcStatus' => (string) $order->get_status(),
266 + // The list view's facts. `format()`, as `WC_DateTime::date()`
267 + // labels site time +00:00 and the client reads the offset.
268 + 'customer' => '' !== $name ? $name : __( 'Guest', 'desktop-mode' ),
269 + 'date' => $order->get_date_created() ? $order->get_date_created()->format( 'c' ) : '',
270 + 'modified' => $order->get_date_modified() ? $order->get_date_modified()->format( 'c' ) : '',
266 271 );
267 272 }
268 273
269 274 /**