IBA Verklaart

From A-Eskwiki
Revision as of 17:33, 18 March 2015 by Jitse (Talk | contribs)

Jump to: navigation, search

IBA Verklaart is de weblog die te vinden is op [1]. De blog draait op WordPress en maakt gebruik van een aantal plugins: HTTP Authentication en WP QuickLaTeX. Er is wel een aantal hacks toegepast om alles naar behoren te laten werken. Hieronder de wijzigingen t.o.v. een vanilla WordPress + plugins.

--- ./wordpress/wp-content/plugins/http-authentication/http-authentication.php	2012-06-25 02:19:07.000000000 +0200
+++ /srv/http/ibaweblog/wp-content/plugins/http-authentication/http-authentication.php	2015-03-10 21:19:17.932667913 +0100
@@ -24,8 +24,8 @@ class HTTPAuthenticationPlugin {
 		}
 
 		add_action('login_head', array($this, 'add_login_css'));
-		add_action('login_footer', array($this, 'add_login_link'));
-		add_action('check_passwords', array($this, 'generate_password'), 10, 3);
+		// add_action('login_footer', array($this, 'add_login_link'));
+		// add_action('check_passwords', array($this, 'generate_password'), 10, 3);
 		add_action('wp_logout', array($this, 'logout'));
 		add_filter('login_url', array($this, 'bypass_reauth'));
 		add_filter('show_password_fields', array($this, 'allow_wp_auth'));
@@ -182,7 +182,8 @@ p#http-authentication-link a {
 		}
 
 		if (! $username) {
-			return new WP_Error('empty_username', '<strong>ERROR</strong>: No user found in server variables.');
+			//return new WP_Error('empty_username', '<strong>ERROR</strong>: No user found in server variables.');
+			return new WP_Error();
 		}
 
 		// Create new users automatically, if configured