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

WordPress Trac noreply at wordpress.org
Tue Nov 26 11:20:44 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:
--------------------------------------+-------------------------
Changes (by johnbillion):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 This change is causing [https://github.com/norcross/airplane-mode the
 Airplane Mode plugin] on my local development site to trigger a fatal
 error. It might be an indication that the plugin is doing it wrong, or it
 might be a bigger problem:

 {{{
 PHP Fatal error:  Uncaught Error: Call to undefined function
 is_plugin_active() in wp-content/plugins/airplane-mode/airplane-
 mode.php:162
 Stack trace:
 #0 wp-content/plugins/airplane-mode/airplane-mode.php(250):
 Airplane_Mode_Core->__construct()
 #1 wp-content/plugins/airplane-mode/airplane-mode.php(1317):
 Airplane_Mode_Core::getInstance()
 #2 wp-settings.php(526): include_once('wp...')
 #3 /var/www/wp-config.php(108): require_once('wp...')
 #4 wp-load.php(55): require_once('/var/www/wp-con...')
 #5 wp-blog-header.php(13): require_once('wp...')
 #6 _index.php(17): require('wp...')
 #7 index.php(19): require_once('_i...')
 #8 {main}
   thrown in wp-content/plugins/airplane-mode/airplane-mode.php on line 162
 }}}

 Reopening to investigate.

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


More information about the wp-trac mailing list