1
0
mirror of https://github.com/kremalicious/Badged.git synced 2024-12-27 15:17:43 +01:00
This commit is contained in:
Matthias Kretschmann 2013-11-09 19:25:27 +01:00
parent 59aaa624d4
commit 7ddb0c09c1
2 changed files with 3 additions and 3 deletions

View File

@ -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 .= '&nbsp;';
$html .= '<label for="style_ios7">iOS 7</label>';
$html .= '</p>';

View File

@ -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' ) );