Title: CreativeLoom's Replies | WordPress.org

---

# CreativeLoom

  [  ](https://wordpress.org/support/users/creativeloom/)

 *   [Profile](https://wordpress.org/support/users/creativeloom/)
 *   [Topics Started](https://wordpress.org/support/users/creativeloom/topics/)
 *   [Replies Created](https://wordpress.org/support/users/creativeloom/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/creativeloom/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/creativeloom/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/creativeloom/engagements/)
 *   [Favorites](https://wordpress.org/support/users/creativeloom/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Hikari Category Permalink] Nooo!](https://wordpress.org/support/topic/nooo/)
 *  [CreativeLoom](https://wordpress.org/support/users/creativeloom/)
 * (@creativeloom)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/nooo/#post-3227936)
 * What makes you say that? I just downloaded and installed this plugin without 
   any problems.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Login Lock] [Plugin: Login Lock] Getting error: This webpage has a redirect loop](https://wordpress.org/support/topic/plugin-login-lock-getting-error-this-webpage-has-a-redirect-loop/)
 *  [CreativeLoom](https://wordpress.org/support/users/creativeloom/)
 * (@creativeloom)
 * [14 years ago](https://wordpress.org/support/topic/plugin-login-lock-getting-error-this-webpage-has-a-redirect-loop/page/2/#post-2583419)
 * Dan:
 * Nice work with the plugin, after seeing your post I checked it out. I’ll be recommending
   my client switches to using Login Security Solution. It’s a pain being stuck 
   with a plugin that’s no longer maintained.
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Login Lock] [Plugin: Login Lock] Getting error: This webpage has a redirect loop](https://wordpress.org/support/topic/plugin-login-lock-getting-error-this-webpage-has-a-redirect-loop/)
 *  [CreativeLoom](https://wordpress.org/support/users/creativeloom/)
 * (@creativeloom)
 * [14 years ago](https://wordpress.org/support/topic/plugin-login-lock-getting-error-this-webpage-has-a-redirect-loop/page/2/#post-2583414)
 * Hi Everyone,
 * I had to fix this recently for a client. The problem _seems_ to be occurring 
   because the plugin is trying to include wp-login.php in order to render the password
   reset box. There’s a redirect at the top of wp-login.php, so potentially once
   the redirect occurs the plugin is triggered again and therefore calls the wp-
   login.php file once more…
 * This is just a theory, it might even be occurring later on in wp-login.php, but
   the point is, to fix it, I went into the [wordpress-root-folder]/wp-content/plugins/
   login-lock/loginlock.php and replaced the function ‘ll_login_header’ (starts 
   on line 41) with the one below. Most of the code is already in the function but
   it’s commented out, though it works:
 *     ```
       function ll_login_header($title = 'Log In', $message = '', $wp_error = '') {
       		global $error, $is_iphone, $interim_login, $current_site;
   
       		/*if ( !function_exists( 'login_header' ) ) {
   
       			ob_start();
       			require_once( ABSPATH . '/wp-login.php' );
       			ob_end_clean(); 
   
       		}
   
       		login_header( $title, $message, $wp_error );*/
   
       		add_filter( 'pre_option_blog_public', '__return_zero' );
       		add_action( 'login_head', 'noindex' );
   
       		if ( empty($wp_error) )
       			$wp_error = new WP_Error();
   
       		$shake_error_codes = array( 'empty_password', 'empty_email', 'invalid_email', 'invalidcombo', 'empty_username', 'invalid_username', 'incorrect_password' );
       		$shake_error_codes = apply_filters( 'shake_error_codes', $shake_error_codes );
   
       		if ( $shake_error_codes && $wp_error->get_error_code() && in_array( $wp_error->get_error_code(), $shake_error_codes ) )
       			add_action( 'login_head', 'wp_shake_js', 12 );
   
       		?>
   
       <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
       <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
       <head>
       	<title><?php bloginfo('name'); ?> › <?php echo $title; ?></title>
       	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
       <?php
       	wp_admin_css( 'login', true );
       	wp_admin_css( 'colors-fresh', true );
   
       	if ( $is_iphone ) { ?>
       	<meta name="viewport" content="width=320; initial-scale=0.9; maximum-scale=1.0; user-scalable=0;" />
       	<style type="text/css" media="screen">
       	form { margin-left: 0px; }
       	#login { margin-top: 20px; }
       	</style>
       <?php
       	} elseif ( isset($interim_login) && $interim_login ) { ?>
       	<style type="text/css" media="all">
       	.login #login { margin: 20px auto; }
       	</style>
       <?php
       	}
   
       	do_action( 'login_enqueue_scripts' );
       	do_action( 'login_head' ); ?>
       </head>
       	<body class="login">
       	<?php   if ( !is_multisite() ) { ?>
       	<div id="login"><h1><a href="<?php echo apply_filters('login_headerurl', 'http://wordpress.org/'); ?>" title="<?php echo apply_filters('login_head
       	ertitle', esc_attr__('Powered by WordPress')); ?>"><?php bloginfo('name'); ?></a></h1>
       	<?php   } else { ?>
       	<div id="login"><h1><a href="<?php echo apply_filters('login_headerurl', network_home_url() ); ?>" title="<?php echo apply_filters('login_headertitle', esc_attr($current_site->site_name) ); ?>"><span class="hide"><?php bloginfo('name'); ?></span></a></h1>
       	<?php   }
   
       		$message = apply_filters('login_message', $message);
       		if ( !empty( $message ) ) echo $message . "\n";
   
       		// Incase a plugin uses $error rather than the $errors object
       		if ( !empty( $error ) ) {
       			$wp_error->add('error', $error);
       			unset($error);
       		}
   
       		if ( $wp_error->get_error_code() ) {
       			$errors = '';
       			$messages = '';
       			foreach ( $wp_error->get_error_codes() as $code ) {
       				$severity = $wp_error->get_error_data($code);
       				foreach ( $wp_error->get_error_messages($code) as $error ) {
       					if ( 'message' == $severity )
       						$messages .= '  ' . $error . "<br />\n";
       					else
       						$errors .= '    ' . $error . "<br />\n";
       				}
       			}
       			if ( !empty($errors) )
       				echo '<div id="login_error">' . apply_filters('login_errors', $errors) . "</div>\n";
       			if ( !empty($messages) )
       				echo '<p class="message">' . apply_filters('login_messages', $messages) . "</p>\n";
       		}
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)