Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #62581, comment 1


Ignore:
Timestamp:
11/27/2024 09:20:32 AM (2 years ago)
Author:
neo2k23

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #62581, comment 1

    v2 v3  
    1 ------------  suggestion does not work.
     1suggested code change
     2
     3{{{#!php
     4<?php
     5foreach ( wp_get_active_and_valid_themes() as $theme ) {
     6        if ( file_exists( $theme . '/functions.php' ) ) {
     7                include $theme . '/functions.php';
     8        }
     9       
     10        if ( is_string( $theme ) ) {
     11                $theme = wp_get_theme( basename( $theme ) );
     12                $theme->load_textdomain();
     13        }
     14}
     15}}}