foreach is a statement, not a function.
See #33491. Built from https://develop.svn.wordpress.org/trunk@33734 git-svn-id: http://core.svn.wordpress.org/trunk@33702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -256,7 +256,7 @@ function wp_terms_checklist( $post_id = 0, $args = array() ) {
|
||||
$checked_categories = array();
|
||||
$keys = array_keys( $categories );
|
||||
|
||||
foreach( $keys as $k ) {
|
||||
foreach ( $keys as $k ) {
|
||||
if ( in_array( $categories[$k]->term_id, $args['selected_cats'] ) ) {
|
||||
$checked_categories[] = $categories[$k];
|
||||
unset( $categories[$k] );
|
||||
|
||||
Reference in New Issue
Block a user