summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>2015-05-01 13:31:15 +0000
committerJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>2015-05-01 13:31:15 +0000
commit7bf39ccbcf5bdd8df2aea1d59ada67c816c8033d (patch)
tree9787bb19c457f9f3b0ff40dc056eaa5da0e6483f
parentForgot to update the wordpress-mobile-pack plugin. (diff)
downloadblogs-gentoo-7bf39ccbcf5bdd8df2aea1d59ada67c816c8033d.tar.gz
blogs-gentoo-7bf39ccbcf5bdd8df2aea1d59ada67c816c8033d.tar.bz2
blogs-gentoo-7bf39ccbcf5bdd8df2aea1d59ada67c816c8033d.zip
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@gentoo.org>
-rw-r--r--plugins/akismet/akismet.php2
-rw-r--r--plugins/akismet/class.akismet.php3
2 files changed, 2 insertions, 3 deletions
diff --git a/plugins/akismet/akismet.php b/plugins/akismet/akismet.php
index c87df60f..5cdd32a4 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 5c786526..97e915ba 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
+}