Changeset 56523
- Timestamp:
- 09/06/2023 12:58:47 PM (13 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme.php
r56180 r56523 1557 1557 if ( empty( $file ) ) { 1558 1558 $path = $stylesheet_directory; 1559 } elseif ( file_exists( $stylesheet_directory . '/' . $file ) ) {1559 } elseif ( $stylesheet_directory !== $template_directory && file_exists( $stylesheet_directory . '/' . $file ) ) { 1560 1560 $path = $stylesheet_directory . '/' . $file; 1561 1561 } else { -
trunk/src/wp-includes/link-template.php
r56245 r56523 4540 4540 $file = ltrim( $file, '/' ); 4541 4541 4542 $stylesheet_directory = get_stylesheet_directory(); 4543 4542 4544 if ( empty( $file ) ) { 4543 4545 $url = get_stylesheet_directory_uri(); 4544 } elseif ( file_exists( get_stylesheet_directory(). '/' . $file ) ) {4546 } elseif ( get_template_directory() !== $stylesheet_directory && file_exists( $stylesheet_directory . '/' . $file ) ) { 4545 4547 $url = get_stylesheet_directory_uri() . '/' . $file; 4546 4548 } else { … … 4601 4603 $file = ltrim( $file, '/' ); 4602 4604 4605 $stylesheet_directory = get_stylesheet_directory(); 4606 $template_directory = get_template_directory(); 4607 4603 4608 if ( empty( $file ) ) { 4604 $path = get_stylesheet_directory();4605 } elseif ( file_exists( get_stylesheet_directory(). '/' . $file ) ) {4606 $path = get_stylesheet_directory(). '/' . $file;4607 } else { 4608 $path = get_template_directory(). '/' . $file;4609 $path = $stylesheet_directory; 4610 } elseif ( $stylesheet_directory !== $template_directory && file_exists( $stylesheet_directory . '/' . $file ) ) { 4611 $path = $stylesheet_directory . '/' . $file; 4612 } else { 4613 $path = $template_directory . '/' . $file; 4609 4614 } 4610 4615
Note: See TracChangeset
for help on using the changeset viewer.