Changeset 6641 for trunk/src/includes/core/template-functions.php
- Timestamp:
- 08/04/2017 01:08:43 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/core/template-functions.php (modified) (4 diffs)
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;
Note: See TracChangeset
for help on using the changeset viewer.