Ticket #6136: 6136.patch
File 6136.patch, 1.2 KB (added by , 9 years ago) |
---|
-
src/bp-templates/bp-legacy/buddypress-functions.php
86 86 add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_styles' ) ); // Enqueue theme CSS 87 87 add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); // Enqueue theme JS 88 88 add_filter( 'bp_enqueue_scripts', array( $this, 'localize_scripts' ) ); // Enqueue theme script localization 89 add_action( 'bp_head', array( $this, 'head_scripts' ) ); // Output some extra JS in the <head>.90 89 91 90 /** Body no-js Class **************************************************/ 92 91 … … 430 429 } 431 430 432 431 /** 433 * Put some scripts in the header, like AJAX url for wp-lists.434 *435 * @since 1.7.0436 */437 public function head_scripts() {438 ?>439 440 <script type="text/javascript">441 /* <![CDATA[ */442 var ajaxurl = '<?php echo bp_core_ajax_url(); ?>';443 /* ]]> */444 </script>445 446 <?php447 }448 449 /**450 432 * Adds the no-js class to the body tag. 451 433 * 452 434 * This function ensures that the <body> element will have the 'no-js' class by default. If you're