Skip to:
Content

BuddyPress.org

Ticket #6136: 6136.patch

File 6136.patch, 1.2 KB (added by slaFFik, 9 years ago)
  • src/bp-templates/bp-legacy/buddypress-functions.php

     
    8686                add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_styles'   ) ); // Enqueue theme CSS
    8787                add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_scripts'  ) ); // Enqueue theme JS
    8888                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>.
    9089
    9190                /** Body no-js Class **************************************************/
    9291
     
    430429        }
    431430
    432431        /**
    433          * Put some scripts in the header, like AJAX url for wp-lists.
    434          *
    435          * @since 1.7.0
    436          */
    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         <?php
    447         }
    448 
    449         /**
    450432         * Adds the no-js class to the body tag.
    451433         *
    452434         * This function ensures that the <body> element will have the 'no-js' class by default. If you're