<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,24 +1,32 @@
 &lt;?php
 /*
 Plugin Name: Access Control
-Plugin URI:	http://github.com/ionfish/access_control/
+Plugin URI: http://github.com/ionfish/access_control
 Description: Only allow logged-in users to view this site.
 Author: Benedict Eastaugh
-Version: 1.0
+Version: 1.1
 Author URI: http://extralogical.net/
 */
 
+/**
+ * Redirects to the login page if...
+ *
+ *   - the user isn't logged in;
+ *   - the user isn't on the login page already;
+ *   - WordPress isn't currently installing.
+ *
+ * @uses is_user_logged_in
+ * @uses wp_redirect
+ * @uses site_url
+ */
 function access_control() {
-	if (
-		!is_user_logged_in()
-		&amp;&amp; !function_exists('login_header')
-		&amp;&amp; WP_INSTALLING !== true
-	) {
-		wp_redirect(site_url('/wp-login.php'), 401);
-		exit;
-	} else {
-		return;
-	}
+    if (!is_user_logged_in() &amp;&amp;
+        !function_exists('login_header') &amp;&amp;
+        WP_INSTALLING !== true)
+    {
+        wp_redirect(site_url('/wp-login.php'), 401);
+        exit;
+    }
 }
 
 add_action('init', 'access_control');</diff>
      <filename>access_control.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>338b84526e2ea4f1d689a072bfa9ce8c84949cfb</id>
    </parent>
  </parents>
  <author>
    <name>Benedict Eastaugh</name>
    <email>benedict@eastaugh.net</email>
  </author>
  <url>http://github.com/ionfish/access_control/commit/69f95dd407e6cb09f530448b6a8205672a40ab31</url>
  <id>69f95dd407e6cb09f530448b6a8205672a40ab31</id>
  <committed-date>2009-10-27T07:21:19-07:00</committed-date>
  <authored-date>2009-10-27T07:21:19-07:00</authored-date>
  <message>Some cleanup.</message>
  <tree>b14ad13e3e016ddf60c102601a0523a1cd76df89</tree>
  <committer>
    <name>Benedict Eastaugh</name>
    <email>benedict@eastaugh.net</email>
  </committer>
</commit>
