Changeset 14151
- Timestamp:
- 12/16/2025 05:13:46 PM (3 months ago)
- Location:
- branches/14.0/src/bp-core
- Files:
-
- 2 edited
-
bp-core-attachments.php (modified) (1 diff)
-
bp-core-avatars.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/14.0/src/bp-core/bp-core-attachments.php
r13891 r14151 721 721 // Enqueue me just once per page, please. 722 722 if ( did_action( 'bp_attachments_enqueue_scripts' ) ) { 723 return ;723 return null; 724 724 } 725 725 -
branches/14.0/src/bp-core/bp-core-avatars.php
r14051 r14151 967 967 * Filters whether or not to handle uploading. 968 968 * 969 * If you want to override this function, make sure you return false.969 * If you want to override this function, make sure you return `false`. 970 970 * 971 971 * @since 1.2.4 972 972 * 973 * @param bool $ value Whether or not to crop.973 * @param bool $pre_filter Whether or not to crop. Defaults to true. 974 974 * @param array $file Appropriate entry from $_FILES superglobal. 975 * @par mastring $upload_dir_filter A filter to be applied to 'upload_dir'.975 * @param string $upload_dir_filter A filter to be applied to 'upload_dir'. 976 976 */ 977 977 if ( ! apply_filters( 'bp_core_pre_avatar_handle_upload', true, $file, $upload_dir_filter ) ) { … … 2218 2218 * 2219 2219 * @param bool $avatar_history True to disable avatar history. False otherwise. 2220 * Default: `false`.2220 * Default: `false`. 2221 2221 */ 2222 2222 return apply_filters( 'bp_disable_avatar_history', false ); … … 2270 2270 */ 2271 2271 function bp_avatar_get_avatars_history( $item_id = 0, $object = 'user', $type = 'full' ) { 2272 /** 2273 * Filter to short-circuit the avatars history retrieval process. 2274 * 2275 * If you want to override this function, make sure you return something other than `null`. 2276 * 2277 * @since 14.5.0 2278 * 2279 * @param null|array $pre_filter Null to proceed with the default handling, or an array of avatars to override it. 2280 * @param int $item_id The item ID we need the avatar version for. 2281 * @param string $object The object the item ID relates to. 2282 * @param string $type Get the `full`, `thumb` or `both` versions. 2283 */ 2284 $pre_filter = apply_filters( 'bp_pre_avatar_get_avatars_history', null, $item_id, $object, $type ); 2285 2286 if ( null !== $pre_filter ) { 2287 return $pre_filter; 2288 } 2289 2272 2290 if ( ! $item_id ) { 2273 2291 return array();
Note: See TracChangeset
for help on using the changeset viewer.