- Timestamp:
- 10/06/2015 11:53:33 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-attachment-cover-image.php
r10178 r10194 94 94 * @since 2.4.0 95 95 * 96 * @param array $upload_dir The original Uploads dir. 96 97 * @return array upload data (path, url, basedir...) 97 98 */ 98 public function upload_dir_filter( ) {99 public function upload_dir_filter( $upload_dir = array() ) { 99 100 // Default values are for profiles 100 101 $object_id = bp_displayed_user_id(); … … 115 116 $subdir = '/' . $object_directory . '/' . $object_id . '/cover-image'; 116 117 117 return apply_filters( 'bp_attachments_cover_image_upload_datas', array( 118 /** 119 * Filters the cover image upload directory. 120 * 121 * @since 2.4.0 122 * 123 * @param array $value Array containing the path, URL, and other helpful settings. 124 * @param array $upload_dir The original Uploads dir. 125 */ 126 return apply_filters( 'bp_attachments_cover_image_upload_dir', array( 118 127 'path' => $this->upload_path . $subdir, 119 128 'url' => $this->url . $subdir, … … 122 131 'baseurl' => $this->url, 123 132 'error' => false 124 ) );133 ), $upload_dir ); 125 134 } 126 135
Note: See TracChangeset
for help on using the changeset viewer.