mirror of
https://github.com/kremalicious/Badged.git
synced 2024-12-27 15:17:43 +01:00
fixes
This commit is contained in:
parent
59aaa624d4
commit
7ddb0c09c1
@ -201,8 +201,8 @@ class Badged_Admin {
|
||||
|
||||
$options = get_option( 'badged_settings' );
|
||||
|
||||
$html .= '<p>';
|
||||
$html = '<input type="radio" id="style_ios7" name="badged_settings[style]" value="ios7"' . checked( 'ios7', $options['style'], false ) . '/>';
|
||||
$html = '<p>';
|
||||
$html .= '<input type="radio" id="style_ios7" name="badged_settings[style]" value="ios7"' . checked( 'ios7', $options['style'], false ) . '/>';
|
||||
$html .= ' ';
|
||||
$html .= '<label for="style_ios7">iOS 7</label>';
|
||||
$html .= '</p>';
|
||||
|
@ -85,7 +85,7 @@ add_action( 'plugins_loaded', array( 'Badged', 'get_instance' ) );
|
||||
//
|
||||
// Admin Stuff
|
||||
//
|
||||
if ( is_admin() ) {
|
||||
if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
|
||||
|
||||
require_once( BADGED_PATH . '/admin/class-badged-admin.php' );
|
||||
add_action( 'plugins_loaded', array( 'Badged_Admin', 'get_instance' ) );
|
||||
|
Loading…
Reference in New Issue
Block a user