Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/02/2016 09:06:30 AM (4 years ago)
Author:
netweb
Message:

Theme Compatibility: Parameter $in_footer in bbp_enqueue_script() should be boolean.

This changeset updates copy-pasta introduced in [5181], bbp_enqueue_script() is a wrapper for wp_enqueue_script(), $in_footer boolean parameter introduced in wp:changeset:10367. Whether on purpose, or inadvertently, our scripts where being added in the footer, this commit explicitly maintains this behavior.

Props thebrandonallen.
Fixes #3013.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress-functions.php

    r5951 r6112  
    212212        // Enqueue the scripts
    213213        foreach ( $scripts as $handle => $attributes ) {
    214             bbp_enqueue_script( $handle, $attributes['file'], $attributes['dependencies'], $this->version, 'screen' );
     214            bbp_enqueue_script( $handle, $attributes['file'], $attributes['dependencies'], $this->version, true );
    215215        }
    216216    }
Note: See TracChangeset for help on using the changeset viewer.