Skip to:
Content

bbPress.org

Changeset 6795


Ignore:
Timestamp:
04/04/2018 05:30:44 PM (20 months ago)
Author:
johnjamesjacoby
Message:

Templates: revert r6641 due to reports of styling breakage.

This reverts back to the 2.5-type behavior of always making sure bbPress styling & scripts are available on all theme-side pages.

We will revisit this enhancement again in a future release.

See #3138. Props robin-w.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/template-functions.php

    r6672 r6795  
    113113 *
    114114 * @since 2.5.0 bbPress (r5180)
    115  * @since 2.6.0 bbPress (r6640) Bail early if not a bbPress page/shortcode
    116115 *
    117116 * @param string      $handle Name of the stylesheet.
     
    129128function bbp_enqueue_style( $handle = '', $file = '', $deps = array(), $ver = false, $media = 'all' ) {
    130129
    131     // Bail if not on a bbPress page or shortcode
    132     if ( ! is_bbpress() ) {
    133         return;
    134     }
    135 
    136130    // No file found yet
    137131    $located = false;
     
    191185 *
    192186 * @since 2.5.0 bbPress (r5180)
    193  * @since 2.6.0 bbPress (r6640) Bail early if not a bbPress page/shortcode
    194187 *
    195188 * @param string      $handle    Name of the script.
     
    206199function bbp_enqueue_script( $handle = '', $file = '', $deps = array(), $ver = false, $in_footer = false ) {
    207200
    208     // Bail if not on a bbPress page or shortcode
    209     if ( ! is_bbpress() ) {
    210         return;
    211     }
    212 
    213201    // No file found yet
    214202    $located = false;
  • trunk/src/templates/default/bbpress-functions.php

    r6641 r6795  
    156156        // Editor scripts
    157157        // @see https://bbpress.trac.wordpress.org/ticket/2930
    158         if ( bbp_use_wp_editor() ) {
     158        if ( bbp_use_wp_editor() && is_bbpress() ) {
    159159            $scripts['bbpress-editor'] = array(
    160160                'file'         => 'js/editor' . $suffix . '.js',
Note: See TracChangeset for help on using the changeset viewer.