PHP4 compat. Props SergeyBiryukov, westi. see #16080

git-svn-id: https://develop.svn.wordpress.org/trunk@17211 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-01-03 19:19:34 +00:00
parent 7511c71d14
commit 457989ce16
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;