Changeset 6862 for trunk/src/templates/default/bbpress-functions.php
- Timestamp:
- 09/05/2018 06:55:06 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/templates/default/bbpress-functions.php
r6795 r6862 41 41 * 42 42 * @since 2.1.0 bbPress (r3732) 43 *44 43 */ 45 44 public function __construct( $properties = array() ) { … … 62 61 * 63 62 * @access private 64 *65 63 */ 66 64 private function setup_actions() { … … 118 116 * 119 117 * @since 2.1.0 bbPress (r3732) 120 *121 118 */ 122 119 public function enqueue_styles() { … … 124 121 // RTL and/or minified 125 122 $suffix = is_rtl() ? '-rtl' : ''; 126 $suffix .= defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';127 123 128 124 // Get and filter the bbp-default style 129 125 $styles = apply_filters( 'bbp_default_styles', array( 130 126 'bbp-default' => array( 131 'file' => 'css/bbpress ' . $suffix . '.css',127 'file' => 'css/bbpress.css', 132 128 'dependencies' => array() 133 129 ) … … 144 140 * 145 141 * @since 2.1.0 bbPress (r3732) 146 *147 142 */ 148 143 public function enqueue_scripts() { … … 150 145 // Setup scripts array 151 146 $scripts = array(); 152 153 // Minified154 $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';155 147 156 148 // Editor scripts … … 158 150 if ( bbp_use_wp_editor() && is_bbpress() ) { 159 151 $scripts['bbpress-editor'] = array( 160 'file' => 'js/editor ' . $suffix . '.js',152 'file' => 'js/editor.js', 161 153 'dependencies' => array( 'jquery' ) 162 154 ); … … 166 158 if ( bbp_is_single_forum() ) { 167 159 $scripts['bbpress-engagements'] = array( 168 'file' => 'js/engagements ' . $suffix . '.js',160 'file' => 'js/engagements.js', 169 161 'dependencies' => array( 'jquery' ) 170 162 ); … … 176 168 // Engagements 177 169 $scripts['bbpress-engagements'] = array( 178 'file' => 'js/engagements ' . $suffix . '.js',170 'file' => 'js/engagements.js', 179 171 'dependencies' => array( 'jquery' ) 180 172 ); … … 183 175 if ( bbp_thread_replies() ) { 184 176 $scripts['bbpress-reply'] = array( 185 'file' => 'js/reply ' . $suffix . '.js',177 'file' => 'js/reply.js', 186 178 'dependencies' => array( 'jquery' ) 187 179 ); … … 209 201 * 210 202 * @since 2.1.0 bbPress (r3732) 211 *212 203 */ 213 204 public function localize_topic_script() { … … 227 218 * 228 219 * @since 2.1.0 bbPress (r3732) 229 *230 220 */ 231 221 public function ajax_favorite() { … … 291 281 * 292 282 * @since 2.1.0 bbPress (r3732) 293 *294 283 */ 295 284 public function ajax_subscription() {
Note: See TracChangeset
for help on using the changeset viewer.