Skip to:
Content

BuddyPress.org

Ticket #4761: admin_ssl_ajax_fix_patch.txt

File admin_ssl_ajax_fix_patch.txt, 1022 bytes (added by will_c, 11 years ago)
Line 
1Index: bp-core/bp-core-cssjs.php
2===================================================================
3--- bp-core/bp-core-cssjs.php   (revision 6717)
4+++ bp-core/bp-core-cssjs.php   (working copy)
5@@ -150,7 +150,7 @@
6 function bp_core_add_ajax_url_js() {
7 ?>
8 
9-       <script type="text/javascript">var ajaxurl = '<?php echo admin_url( 'admin-ajax.php' ); ?>';</script>
10+       <script type="text/javascript">var ajaxurl = '<?php echo network_site_url( '/wp-admin/admin-ajax.php' ); ?>';</script>
11 
12 <?php
13 }
14Index: bp-templates/bp-legacy/buddypress-functions.php
15===================================================================
16--- bp-templates/bp-legacy/buddypress-functions.php     (revision 6717)
17+++ bp-templates/bp-legacy/buddypress-functions.php     (working copy)
18@@ -278,7 +278,7 @@
19 
20                <script type="text/javascript" charset="utf-8">
21                        /* <![CDATA[ */
22-                       var ajaxurl = '<?php echo admin_url( 'admin-ajax.php' ); ?>';
23+                       var ajaxurl = '<?php echo network_site_url( '/wp-admin/admin-ajax.php' ); ?>';
24                        /* ]]> */
25                </script>
26