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:
parent
979b9eb7c5
commit
55d6d8af12
|
@ -1476,7 +1476,7 @@ $post_params = array(
|
||||||
);
|
);
|
||||||
$post_params = apply_filters( 'swfupload_post_params', $post_params );
|
$post_params = apply_filters( 'swfupload_post_params', $post_params );
|
||||||
$p = array();
|
$p = array();
|
||||||
foreach ( $post_params as $param => & $val )
|
foreach ( $post_params as $param => $val )
|
||||||
$p[] = "\t\t'$param' : '$val'";
|
$p[] = "\t\t'$param' : '$val'";
|
||||||
$post_params_str = implode( ", \n", $p );
|
$post_params_str = implode( ", \n", $p );
|
||||||
|
|
||||||
|
|
|
@ -157,7 +157,7 @@ class WP_Admin_Bar {
|
||||||
}
|
}
|
||||||
|
|
||||||
function add_node( $parent_id, &$menu, $child ) {
|
function add_node( $parent_id, &$menu, $child ) {
|
||||||
foreach( $menu as $id => &$menu_item ) {
|
foreach( $menu as $id => $menu_item ) {
|
||||||
if ( $parent_id == $id ) {
|
if ( $parent_id == $id ) {
|
||||||
$menu->{$parent_id}['children']->{$child['id']} = $child;
|
$menu->{$parent_id}['children']->{$child['id']} = $child;
|
||||||
$child = null;
|
$child = null;
|
||||||
|
|
Loading…
Reference in New Issue