Changeset 9757 for trunk/src/bp-core/bp-core-avatars.php
- Timestamp:
- 04/16/2015 10:36:38 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-avatars.php
r9755 r9757 1438 1438 return apply_filters( 'bp_avatar_use_webcam', true ); 1439 1439 } 1440 1441 /** 1442 * Template function to load the Avatar UI javascript templates 1443 * 1444 * @since BuddyPress (2.3.0) 1445 */ 1446 function bp_avatar_get_templates() { 1447 if ( ! bp_avatar_is_front_edit() ) { 1448 return; 1449 } 1450 1451 bp_attachments_get_template_part( 'avatars/index' ); 1452 } 1453 1454 /** 1455 * Trick to check if the theme's BuddyPress templates are up to date 1456 * 1457 * If the "avatar templates" are not including the new template tag, this will 1458 * help users to get the avatar UI and inform the most curious that their 1459 * templates are out of date. 1460 * 1461 * @since BuddyPress (2.3.0) 1462 */ 1463 function bp_avatar_template_check() { 1464 if ( ! bp_avatar_is_front_edit() ) { 1465 return; 1466 } 1467 1468 if ( ! did_action( 'bp_attachments_avatar_check_template' ) ) { 1469 bp_attachments_get_template_part( 'avatars/index' ); 1470 } 1471 }
Note: See TracChangeset
for help on using the changeset viewer.