Changeset 5829 for trunk/src/includes/core/template-functions.php
- Timestamp:
- 07/14/2015 12:46:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/core/template-functions.php
r5813 r5829 103 103 104 104 // Maybe load the template if one was located 105 if ( ( defined( 'WP_USE_THEMES' ) && WP_USE_THEMES ) && ( true === $load ) && ! empty( $located ) ) {105 if ( ( defined( 'WP_USE_THEMES' ) && WP_USE_THEMES ) && ( true === $load ) && ! empty( $located ) ) { 106 106 load_template( $located, $require_once ); 107 107 } … … 158 158 159 159 // Enqueue if located 160 if ( ! empty( $located ) ) {160 if ( ! empty( $located ) ) { 161 161 162 162 $content_dir = constant( 'WP_CONTENT_DIR' ); … … 226 226 227 227 // Enqueue if located 228 if ( ! empty( $located ) ) {228 if ( ! empty( $located ) ) { 229 229 230 230 $content_dir = constant( 'WP_CONTENT_DIR' ); … … 504 504 505 505 // It is a user page - We'll also check if it is user edit 506 if ( ! empty( $bbp_user ) ) {506 if ( ! empty( $bbp_user ) ) { 507 507 508 508 /** Find User *********************************************************/ … … 534 534 535 535 // View or edit? 536 if ( ! empty( $is_edit ) ) {536 if ( ! empty( $is_edit ) ) { 537 537 538 538 // We are editing a profile … … 602 602 603 603 // View Page 604 } elseif ( ! empty( $bbp_view ) ) {604 } elseif ( ! empty( $bbp_view ) ) { 605 605 606 606 // Check if the view exists by checking if there are query args are set … … 624 624 // Check if there are search query args set 625 625 $search_terms = bbp_get_search_terms(); 626 if ( ! empty( $search_terms ) ) {626 if ( ! empty( $search_terms ) ) { 627 627 $posts_query->bbp_search_terms = $search_terms; 628 628 } … … 635 635 636 636 // Forum/Topic/Reply Edit Page 637 } elseif ( ! empty( $is_edit ) ) {637 } elseif ( ! empty( $is_edit ) ) { 638 638 639 639 // Get the post type from the main query loop … … 641 641 642 642 // Check which post_type we are editing, if any 643 if ( ! empty( $post_type ) ) {643 if ( ! empty( $post_type ) ) { 644 644 switch( $post_type ) { 645 645
Note: See TracChangeset
for help on using the changeset viewer.