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:
parent
7511c71d14
commit
457989ce16
@ -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…
x
Reference in New Issue
Block a user