Changeset 9831 for trunk/src/bp-core/classes/class-bp-attachment.php
- Timestamp:
- 05/02/2015 08:55:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-attachment.php
r9819 r9831 220 220 add_filter( "{$this->action}_prefilter", array( $this, 'validate_upload' ), 10, 1 ); 221 221 222 /** 223 * The above dynamic filter was introduced in WordPress 4.0, as we support WordPress 224 * back to 3.6, we need to also use the pre 4.0 static filter and remove it after 225 * the upload was processed. 226 */ 227 add_filter( 'wp_handle_upload_prefilter', array( $this, 'validate_upload' ), 10, 1 ); 228 222 229 // Set Default overrides 223 230 $overrides = array( … … 265 272 // Restore WordPress Uploads data 266 273 remove_filter( 'upload_dir', $upload_dir_filter, 10, 0 ); 274 275 // Remove the pre WordPress 4.0 static filter 276 remove_filter( 'wp_handle_upload_prefilter', array( $this, 'validate_upload' ), 10, 1 ); 267 277 268 278 // Finally return the uploaded file or the error
Note: See TracChangeset
for help on using the changeset viewer.