Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
Replace create_function()
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Satre authored Apr 28, 2020
1 parent 279b4c4 commit d0c1892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/class-swboc-common.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function SWBOC_Common() {
add_action( 'init', array ( $this, 'create_swboc_type' ) );

include( 'class-swboc-widget.php' );
add_action( 'widgets_init', create_function( '', "register_widget( 'SWBOC_Widget' );" ) );
add_action( 'widgets_init', function () { register_widget( 'SWBOC_Widget' ); } );
}

function create_swboc_type() {
Expand Down Expand Up @@ -42,4 +42,4 @@ function create_swboc_type() {

}

?>
?>

0 comments on commit d0c1892

Please sign in to comment.