Changeset 56635 for trunk/src/wp-includes/comment-template.php
- Timestamp:
- 09/20/2023 05:25:26 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r56549 r56635 1382 1382 * 1383 1383 * The `$file` path is passed through a filter hook called {@see 'comments_template'}, 1384 * which includes the TEMPLATEPATHand $file combined. Tries the $filtered path1384 * which includes the template directory and $file combined. Tries the $filtered path 1385 1385 * first and if it fails it will require the default comment template from the 1386 1386 * default theme. If either does not exist, then the WordPress process will be … … 1601 1601 } 1602 1602 1603 $theme_template = STYLESHEETPATH . $file; 1603 $stylesheet_path = get_stylesheet_directory(); 1604 $template_path = get_template_directory(); 1605 1606 $theme_template = $stylesheet_path . $file; 1604 1607 1605 1608 /** … … 1614 1617 if ( file_exists( $include ) ) { 1615 1618 require $include; 1616 } elseif ( file_exists( TEMPLATEPATH. $file ) ) {1617 require TEMPLATEPATH. $file;1619 } elseif ( file_exists( $template_path . $file ) ) { 1620 require $template_path . $file; 1618 1621 } else { // Backward compat code will be removed in a future release. 1619 1622 require ABSPATH . WPINC . '/theme-compat/comments.php';
Note: See TracChangeset
for help on using the changeset viewer.