[wp-trac] [WordPress Trac] #62581: Fatal error TypeError: basename(): wp-settings.php in latest WP 6.8 Beta
WordPress Trac
noreply at wordpress.org
Wed Nov 27 09:17:02 UTC 2024
#62581: Fatal error TypeError: basename(): wp-settings.php in latest WP 6.8 Beta
--------------------------+------------------------------
Reporter: neo2k23 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by neo2k23):
suggested change
{{{
// Load the functions for the active theme, for both parent and child
theme if applicable.
foreach ( wp_get_active_and_valid_themes() as $theme ) {
if ( file_exists( $theme . '/functions.php' ) ) {
include $theme . '/functions.php';
}
if ( !empty( $theme ) {
$theme = wp_get_theme( basename( $theme ) );
$theme->load_textdomain();
}
}
unset( $theme );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62581#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list