Skip to content

Commit

Permalink
Remove anonymous function in options-ajax
Browse files Browse the repository at this point in the history
  • Loading branch information
anubisthejackle committed Apr 25, 2015
1 parent 00fe95c commit 69b5939
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions options-ajax.php
Expand Up @@ -28,11 +28,13 @@ public function saveSettings() {

}

add_action('admin_init', function() {
function docs_to_wp_init_ajax() {

if( !defined( 'DOING_AJAX' ) || !DOING_AJAX )
return;

$ajax = new Docs_To_WP_Options_Ajax();

});
}

add_action('admin_init', 'docs_to_wp_init_ajax');

0 comments on commit 69b5939

Please sign in to comment.