Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move admin includes to admin_init.

  • Loading branch information...
commit 5e030b36dfcbfc909edfb7c94a7f680ec0cf30be 1 parent 21e13cc
@benhuson authored
Showing with 3 additions and 9 deletions.
  1. +3 −0  includes/wp-geo.php
  2. +0 −9 wp-geo.php
View
3  includes/wp-geo.php
@@ -586,6 +586,9 @@ function init_later() {
*/
function admin_init() {
+ include_once( WPGEO_DIR . 'admin/editor.php' );
+ include_once( WPGEO_DIR . 'admin/dashboard.php' );
+ include_once( WPGEO_DIR . 'admin/settings.php' );
// Register Settings
if ( function_exists('register_setting') ) {
View
9 wp-geo.php
@@ -62,15 +62,6 @@
-// Admin Includes
-if ( is_admin() ) {
- include_once( WPGEO_DIR . 'admin/editor.php' );
- include_once( WPGEO_DIR . 'admin/dashboard.php' );
- include_once( WPGEO_DIR . 'admin/settings.php' );
-}
-
-
-
// Init.
global $wpgeo;
$wpgeo = new WPGeo();
Please sign in to comment.
Something went wrong with that request. Please try again.