From 626fa3b3d372e1d67cfa0112a1e3f733155d2456 Mon Sep 17 00:00:00 2001 From: azaozz Date: Mon, 13 Jun 2011 01:03:55 +0000 Subject: [PATCH] Always use curly brackets with foreach, see [18295] git-svn-id: http://svn.automattic.com/wordpress/trunk@18296 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 50ed22b0a9..0c4b2ad766 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -942,7 +942,7 @@ function do_meta_boxes($page, $context, $object) { do { // Grab the ones the user has manually sorted. Pull them out of their previous context/priority and into the one the user chose if ( !$already_sorted && $sorted = get_user_option( "meta-box-order_$page" ) ) { - foreach ( $sorted as $box_context => $ids ) + foreach ( $sorted as $box_context => $ids ) { $_ids = explode(',', $ids); if ( $k = array_search('dashboard_browser_nag', $_ids, true) ) { // it's ok if this is the first value, i.e. $k == 0 @@ -954,6 +954,7 @@ function do_meta_boxes($page, $context, $object) { if ( $id ) add_meta_box( $id, null, null, $page, $box_context, 'sorted' ); } + } } $already_sorted = true;