diff --git a/admin/bueditor.admin.inc b/admin/bueditor.admin.inc
index 6a05456..4988e1d 100644
--- a/admin/bueditor.admin.inc
+++ b/admin/bueditor.admin.inc
@@ -824,7 +824,9 @@ function bueditor_eop_copy($editor, $name) {
   $buttons = bueditor_buttons($editor->eid);
   $editor->eid = NULL;
   $editor->name = $name ? $name : 'Copy of ' . $editor->name;
-  array_walk($buttons, create_function('&$button', '$button->bid = NULL;'));
+  array_walk($icons, function (&$button) {
+    $button->bid = NULL;
+  });
   if ($editor = bueditor_write_editor($editor, $buttons)) {
     bueditor_message_added($editor->name);
   }
@@ -927,7 +929,9 @@ function bueditor_write_editor($editor, $buttons = array()) {
  */
 function bueditor_icons($path) {
   $icons = file_scan_directory($path, '/\.(png|gif|jpg)$/', array('recurse' => FALSE, 'key' => 'filename'));
-  array_walk($icons, create_function('&$value', '$value = 1;'));
+  array_walk($icons, function (&$value) {
+    $value = 1;
+  });
   return $icons;
 }
 
diff --git a/admin/bueditor.sprite.inc b/admin/bueditor.sprite.inc
index 5647d9f..8ab860c 100644
--- a/admin/bueditor.sprite.inc
+++ b/admin/bueditor.sprite.inc
@@ -10,7 +10,9 @@
  */
 function bueditor_sprite($editor, $buttons = array()) {
   if (!empty($buttons)) {
-    uasort($buttons, create_function('$b1,$b2', 'return $b1->weight - $b2->weight;'));
+    uasort($buttons, function ($b1, $b2) {
+      return $b1->weight - $b2->weight;
+    });
     return bueditor_sprite_buttons($buttons, $editor->iconpath);
   }
   elseif (isset($editor->eid) && $editor->eid > 0) {
