diff --git a/common/php/screen-options.php b/common/php/screen-options.php index 5bfdec0a1..6679806bd 100644 --- a/common/php/screen-options.php +++ b/common/php/screen-options.php @@ -166,7 +166,8 @@ function ajax_save_callback(){ } //The 'action' argument is in the form "save_settings-panel_id" - $id = end(explode('-', $_POST['action'], 2)); + $ids = explode( '-', $_POST['action'], 2 ); + $id = end( $ids ); //Basic security check. check_ajax_referer('save_settings-' . $id, '_wpnonce-' . $id);