PHP4 compat. Props SergeyBiryukov, westi. see #16080

git-svn-id: http://svn.automattic.com/wordpress/trunk@17211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-01-03 19:19:34 +00:00
parent 979b9eb7c5
commit 55d6d8af12
2 changed files with 2 additions and 2 deletions

View File

@ -1476,7 +1476,7 @@ $post_params = array(
);
$post_params = apply_filters( 'swfupload_post_params', $post_params );
$p = array();
foreach ( $post_params as $param => & $val )
foreach ( $post_params as $param => $val )
$p[] = "\t\t'$param' : '$val'";
$post_params_str = implode( ", \n", $p );

View File

@ -157,7 +157,7 @@ class WP_Admin_Bar {
}
function add_node( $parent_id, &$menu, $child ) {
foreach( $menu as $id => &$menu_item ) {
foreach( $menu as $id => $menu_item ) {
if ( $parent_id == $id ) {
$menu->{$parent_id}['children']->{$child['id']} = $child;
$child = null;