[wp-trac] [WordPress Trac] #37656: Improve plugin bootstrapping processes with `WP_Plugin`

WordPress Trac noreply at wordpress.org
Mon Aug 15 08:53:59 UTC 2016


#37656: Improve plugin bootstrapping processes with `WP_Plugin`
-------------------------+------------------------------
 Reporter:  flixos90     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Plugins      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by flixos90):

 @swissspidy: Good point. I think it might be possible for `WP_Plugin` to
 do both. We could first develop it in the same way as `WP_Theme`, but in
 addition add a method like `set_main_class()` which would be called from
 the above `register_plugin()`. Then `WP_Plugin` would take care of what I
 described. The only difference would be that the class passed wouldn't
 extend `WP_Plugin` then - instead it would need to implement an interface
 like `WP_Plugin_Interface` (not sure about that name, but that's all that
 came into mind now).

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


More information about the wp-trac mailing list