Make WordPress Core

Changeset 18296


Ignore:
Timestamp:
06/13/2011 01:03:55 AM (15 years ago)
Author:
azaozz
Message:

Always use curly brackets with foreach, see [18295]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r18295 r18296  
    943943                // Grab the ones the user has manually sorted. Pull them out of their previous context/priority and into the one the user chose
    944944                if ( !$already_sorted && $sorted = get_user_option( "meta-box-order_$page" ) ) {
    945                         foreach ( $sorted as $box_context => $ids )
     945                        foreach ( $sorted as $box_context => $ids ) {
    946946                                $_ids = explode(',', $ids);
    947947
    … …  
    955955                                                add_meta_box( $id, null, null, $page, $box_context, 'sorted' );
    956956                                }
     957                        }
    957958                }
    958959                $already_sorted = true;
Note: See TracChangeset for help on using the changeset viewer.