Ticket #4761: 4761.01.patch
File 4761.01.patch, 1.1 KB (added by , 12 years ago) |
---|
-
bp-core/bp-core-cssjs.php
function bp_core_add_cropper_inline_css() { 146 146 function bp_core_add_ajax_url_js() { 147 147 ?> 148 148 149 <script type="text/javascript">var ajaxurl = '<?php echo network_site_url( '/wp-admin/admin-ajax.php' ); ?>';</script>149 <script type="text/javascript">var ajaxurl = "<?php echo admin_url( 'admin-ajax.php', is_ssl() ? 'admin' : 'http' ); ?>";</script> 150 150 151 151 <?php 152 152 } -
bp-templates/bp-legacy/buddypress-functions.php
class BP_Legacy extends BP_Theme_Compat { 290 290 291 291 <script type="text/javascript" charset="utf-8"> 292 292 /* <![CDATA[ */ 293 var ajaxurl = '<?php echo network_site_url( '/wp-admin/admin-ajax.php' ); ?>';293 var ajaxurl = "<?php echo admin_url( 'admin-ajax.php', is_ssl() ? 'admin' : 'http' ); ?>";; 294 294 /* ]]> */ 295 295 </script> 296 296