[wp-meta] [Making WordPress.org] #3704: Prevent Fatal Errors from Gutenberg Tweaks in WordCamp Environment

Making WordPress.org noreply at wordpress.org
Mon Jul 9 00:17:09 UTC 2018


#3704: Prevent Fatal Errors from Gutenberg Tweaks in WordCamp Environment
-------------------------------------+--------------------------
 Reporter:  dryanpress               |      Owner:  coreymckrill
     Type:  defect                   |     Status:  assigned
 Priority:  high                     |  Milestone:
Component:  WordCamp Site & Plugins  |   Keywords:
-------------------------------------+--------------------------
 [https://meta.trac.wordpress.org/changeset/7321/ An earlier commit from
 @coreymckrill] was meant to address this, but unfortunately doesn't
 prevent fatal errors:

 [https://codex.wordpress.org/Function_Reference/is_plugin_active
 is_plugin_active() is only available on the Admin] unless the file is
 scoped to load on the front end.

 PHP 7.2.x also fatal errors unless global namespace methods are explicitly
 slashed.

 As a simplified approach, the gutenberg_init() method isn't available
 unless Gutenberg is active, and can be used to check plugin activation
 without requiring the file containing is_plugin_active().

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/3704>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list