|
link to this page:
http://pastebin.antiyes.com/index478.html
download this file: click here
|
description/question: patch for bp-moderation for upgrade to buddypress 1.6.
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
| |
diff -rupN bp-moderation-orig/bpModLoader.php bp-moderation/bpModLoader.php
--- bp-moderation-orig/bpModLoader.php 2011-09-28 20:07:41.000000000 -0400
+++ bp-moderation/bpModLoader.php 2012-08-16 14:51:17.956121500 -0400
@@ -31,6 +31,15 @@ Domain Path: /lang
//load the plugin
new bpModLoader();
+// jboker - 2012-08-16 added to allow the bp_moderation plugin to continue working after upgrading to bp 1.6
+add_action('wp_head', 'bp_mod_add_wp_load');
+function bp_mod_add_wp_load()
+{
+ echo '<script type="text/javascript">';
+ echo 'var ajaxurl_wpload = "' . get_bloginfo('url') . '/wp-load.php";';
+ echo '</script>';
+}
+
/**
* Loader for bp-moderation
*/
diff -rupN bp-moderation-orig/js/bp-moderation.js bp-moderation/js/bp-moderation.js
--- bp-moderation-orig/js/bp-moderation.js 2011-09-28 20:07:41.000000000 -0400
+++ bp-moderation/js/bp-moderation.js 2012-08-16 14:43:46.156121500 -0400
@@ -19,7 +19,7 @@ jq(document).ready(function() {
else
bpmod_current_requests[data] = true;
- jq.post(ajaxurl, data,
+ jq.post(ajaxurl_wpload, data,
function(response) {
link.fadeOut(100, function() {
|
|
|
|
|