Difference between revisions of "IBA Verklaart"
From A-Eskwiki
Line 27: | Line 27: | ||
// Create new users automatically, if configured | // Create new users automatically, if configured | ||
+ | </source> | ||
+ | <source lang="diff"> | ||
+ | --- ./wordpress/wp-includes/pluggable.php 2014-12-01 04:21:22.000000000 +0100 | ||
+ | +++ /srv/http/ibaweblog/wp-includes/pluggable.php 2015-03-09 14:39:17.000000000 +0100 | ||
+ | @@ -593,7 +593,7 @@ function wp_logout() { | ||
+ | * | ||
+ | * @since 1.5.0 | ||
+ | */ | ||
+ | - do_action( 'wp_logout' ); | ||
+ | + // do_action( 'wp_logout' ); | ||
+ | } | ||
+ | endif; | ||
</source> | </source> |
Revision as of 17:36, 18 March 2015
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
--- ./wordpress/wp-includes/pluggable.php 2014-12-01 04:21:22.000000000 +0100 +++ /srv/http/ibaweblog/wp-includes/pluggable.php 2015-03-09 14:39:17.000000000 +0100 @@ -593,7 +593,7 @@ function wp_logout() { * * @since 1.5.0 */ - do_action( 'wp_logout' ); + // do_action( 'wp_logout' ); } endif;