Skip to content

Commit 8d022b9

Browse files
committed
Fix Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in ../inc/3rd-party/plugins/sf-move-login.php on line 39
1 parent 7b83858 commit 8d022b9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

inc/3rd-party/plugins/sf-move-login.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ function rocket_add_sfml_exclude_pages( $urls ) {
3636
$sfml_slugs = array_map( 'home_url', $sfml_slugs );
3737
$sfml_slugs = array_map( 'trailingslashit', $sfml_slugs );
3838
$sfml_slugs = array_map( 'rocket_clean_exclude_file', $sfml_slugs );
39-
$sfml_slugs = array_map( function( $sfml_slug ) {
40-
return $sfml_slug . '?';
41-
}, $sfml_slugs );
42-
39+
40+
foreach( $sfml_slugs as $key => $slug ) {
41+
$sfml_slugs[ $key ] = $slug . '?':
42+
}
43+
4344
return array_merge( $urls, $sfml_slugs );
4445
}
4546

0 commit comments

Comments
 (0)