Changeset 10091
- Timestamp:
- 09/03/2015 02:35:20 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-attachments.php
r10039 r10091 394 394 $attachment_template_part = 'assets/_attachments/' . $slug; 395 395 396 // Load the attachment template in WP Administrati n screens396 // Load the attachment template in WP Administration screens. 397 397 if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) { 398 398 $attachment_admin_template_part = buddypress()->themes_dir . '/bp-legacy/buddypress/' . $attachment_template_part . '.php'; 399 399 400 // Check the template part exists400 // Check whether the template part exists. 401 401 if ( ! file_exists( $attachment_admin_template_part ) ) { 402 402 return false; 403 403 } 404 404 405 // load the template part405 // Load the template part. 406 406 require( $attachment_admin_template_part ); 407 407
Note: See TracChangeset
for help on using the changeset viewer.