commit: 7bf39ccbcf5bdd8df2aea1d59ada67c816c8033d
Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo
<DOT> org>
AuthorDate: Fri May 1 13:31:15 2015 +0000
Commit: Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org>
CommitDate: Fri May 1 13:31:15 2015 +0000
URL: https://gitweb.gentoo.org/proj/blogs-gentoo.git/commit/?id=7bf39ccb
Let's see if defining the key in the class.akismet.php file makes wordpress
"happier".
Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT>
gentoo.org>
plugins/akismet/akismet.php | 2 --
plugins/akismet/class.akismet.php | 3 ++-
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/plugins/akismet/akismet.php b/plugins/akismet/akismet.php
index c87df60..5cdd32a 100644
--- a/plugins/akismet/akismet.php
+++ b/plugins/akismet/akismet.php
@@ -54,8 +54,6 @@ if ( is_admin() ) {
add_action( 'init', array( 'Akismet_Admin', 'init' ) );
}
-include '/var/www/blogs.gentoo.org/secrets/wp-apikey.php';
-
//add wrapper class around deprecated akismet functions that are referenced
elsewhere
require_once( AKISMET__PLUGIN_DIR . 'wrapper.php' );
diff --git a/plugins/akismet/class.akismet.php
b/plugins/akismet/class.akismet.php
index 5c78652..97e915b 100644
--- a/plugins/akismet/class.akismet.php
+++ b/plugins/akismet/class.akismet.php
@@ -53,6 +53,7 @@ class Akismet {
}
public static function get_api_key() {
+ include '/var/www/blogs.gentoo.org/secrets/wp-apikey.php';
return apply_filters( 'akismet_get_api_key',
defined('WPCOM_API_KEY') ? constant('WPCOM_API_KEY') :
get_option('wordpress_api_key') );
}
@@ -1085,4 +1086,4 @@ p {
return $r;
}
-}
\ No newline at end of file
+}