Skip to content

Instantly share code, notes, and snippets.

@todeveni
Created January 13, 2012 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todeveni/1605009 to your computer and use it in GitHub Desktop.
Save todeveni/1605009 to your computer and use it in GitHub Desktop.
Login Lock plugin for WordPress 3.3+ fix
--- loginlock.php.org 2011-11-11 11:05:09.000000000 +0200
+++ loginlock.php 2012-01-13 09:35:53.000000000 +0200
@@ -604,7 +604,7 @@
// from WordPress Core
function ll_login_header($title = 'Log In', $message = '', $wp_error = '') {
- global $error, $is_iphone, $interim_login, $current_site;
+ global $error, $is_iphone, $interim_login, $current_site, $wp_version;
add_filter( 'pre_option_blog_public', '__return_zero' );
add_action( 'login_head', 'noindex' );
@@ -627,7 +627,9 @@
<title><?php bloginfo('name'); ?> &rsaquo; <?php echo $title; ?></title>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<?php
- wp_admin_css( 'login', true );
+ if (version_compare($wp_version, '3.3', '<')) {
+ wp_admin_css( 'login', true );
+ }
wp_admin_css( 'colors-fresh', true );
if ( $is_iphone ) { ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment