Changeset 6641
- Timestamp:
- 08/04/2017 01:08:43 AM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
-
includes/core/template-functions.php (modified) (4 diffs)
-
templates/default/bbpress-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/core/template-functions.php
r6583 r6641 113 113 * 114 114 * @since 2.5.0 bbPress (r5180) 115 * @since 2.6.0 bbPress (r6640) Bail early if not a bbPress page/shortcode 115 116 * 116 117 * @param string $handle Name of the stylesheet. … … 128 129 function bbp_enqueue_style( $handle = '', $file = '', $deps = array(), $ver = false, $media = 'all' ) { 129 130 131 // Bail if not on a bbPress page or shortcode 132 if ( ! is_bbpress() ) { 133 return; 134 } 135 130 136 // No file found yet 131 137 $located = false; … … 185 191 * 186 192 * @since 2.5.0 bbPress (r5180) 193 * @since 2.6.0 bbPress (r6640) Bail early if not a bbPress page/shortcode 187 194 * 188 195 * @param string $handle Name of the script. … … 199 206 function bbp_enqueue_script( $handle = '', $file = '', $deps = array(), $ver = false, $in_footer = false ) { 200 207 208 // Bail if not on a bbPress page or shortcode 209 if ( ! is_bbpress() ) { 210 return; 211 } 212 201 213 // No file found yet 202 214 $located = false; -
trunk/src/templates/default/bbpress-functions.php
r6615 r6641 156 156 // Editor scripts 157 157 // @see https://bbpress.trac.wordpress.org/ticket/2930 158 if ( bbp_use_wp_editor() && is_bbpress()) {158 if ( bbp_use_wp_editor() ) { 159 159 $scripts['bbpress-editor'] = array( 160 160 'file' => 'js/editor' . $suffix . '.js',
Note: See TracChangeset
for help on using the changeset viewer.