Changeset 14152
- Timestamp:
- 12/16/2025 05:15:31 PM (5 hours ago)
- Location:
- trunk/src/bp-core
- Files:
-
- 2 edited
-
bp-core-attachments.php (modified) (1 diff)
-
bp-core-avatars.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-attachments.php
r14140 r14152 724 724 // Enqueue me just once per page, please. 725 725 if ( did_action( 'bp_attachments_enqueue_scripts' ) ) { 726 return ;726 return null; 727 727 } 728 728 -
trunk/src/bp-core/bp-core-avatars.php
r14140 r14152 973 973 * Filters whether or not to handle uploading. 974 974 * 975 * If you want to override this function, make sure you return false.975 * If you want to override this function, make sure you return `false`. 976 976 * 977 977 * @since 1.2.4 978 978 * 979 * @param bool $ value Whether or not to crop.979 * @param bool $pre_filter Whether or not to crop. Defaults to true. 980 980 * @param array $file Appropriate entry from $_FILES superglobal. 981 * @par mastring $upload_dir_filter A filter to be applied to 'upload_dir'.981 * @param string $upload_dir_filter A filter to be applied to 'upload_dir'. 982 982 */ 983 983 if ( ! apply_filters( 'bp_core_pre_avatar_handle_upload', true, $file, $upload_dir_filter ) ) { … … 2224 2224 * 2225 2225 * @param bool $avatar_history True to disable avatar history. False otherwise. 2226 * Default: `false`.2226 * Default: `false`. 2227 2227 */ 2228 2228 return apply_filters( 'bp_disable_avatar_history', false ); … … 2276 2276 */ 2277 2277 function bp_avatar_get_avatars_history( $item_id = 0, $object = 'user', $type = 'full' ) { 2278 /** 2279 * Filter to short-circuit the avatars history retrieval process. 2280 * 2281 * If you want to override this function, make sure you return something other than `null`. 2282 * 2283 * @since 14.5.0 2284 * 2285 * @param null|array $pre_filter Null to proceed with the default handling, or an array of avatars to override it. 2286 * @param int $item_id The item ID we need the avatar version for. 2287 * @param string $object The object the item ID relates to. 2288 * @param string $type Get the `full`, `thumb` or `both` versions. 2289 */ 2290 $pre_filter = apply_filters( 'bp_pre_avatar_get_avatars_history', null, $item_id, $object, $type ); 2291 2292 if ( null !== $pre_filter ) { 2293 return $pre_filter; 2294 } 2295 2278 2296 if ( ! $item_id ) { 2279 2297 return array();
Note: See TracChangeset
for help on using the changeset viewer.