[wp-trac] [WordPress Trac] #62244: Just-in-time translation loading for plugins/themes not in the directory

WordPress Trac noreply at wordpress.org
Wed Nov 27 09:55:14 UTC 2024


#62244: Just-in-time translation loading for plugins/themes not in the directory
--------------------------------------+-------------------------
 Reporter:  swissspidy                |       Owner:  swissspidy
     Type:  enhancement               |      Status:  reopened
 Priority:  normal                    |   Milestone:  6.8
Component:  I18N                      |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch needs-dev-note  |     Focuses:
--------------------------------------+-------------------------

Comment (by neo2k23):

 The theme has this code in the functions.php

 {{{#!php
 <?php
 if(!class_exists('Theme')){
         /* Load the Theme class. */
         require_once (TEMPLATEPATH . '/framework/theme.php');

         $theme = new Theme();
         $options = include(TEMPLATEPATH . '/framework/info.php');

         $theme->init($options);
 }

 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62244#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list