mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
foreach is a statement, not a function.
See #33491. git-svn-id: https://develop.svn.wordpress.org/trunk@33734 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -765,7 +765,7 @@ function delete_plugins( $plugins, $deprecated = '' ) {
|
||||
return false;
|
||||
|
||||
$checked = array();
|
||||
foreach( $plugins as $plugin )
|
||||
foreach ( $plugins as $plugin )
|
||||
$checked[] = 'checked[]=' . $plugin;
|
||||
|
||||
ob_start();
|
||||
@@ -813,7 +813,7 @@ function delete_plugins( $plugins, $deprecated = '' ) {
|
||||
|
||||
$errors = array();
|
||||
|
||||
foreach( $plugins as $plugin_file ) {
|
||||
foreach ( $plugins as $plugin_file ) {
|
||||
// Run Uninstall hook.
|
||||
if ( is_uninstallable_plugin( $plugin_file ) ) {
|
||||
uninstall_plugin($plugin_file);
|
||||
|
||||
Reference in New Issue
Block a user