Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #22802, comment 10


Ignore:
Timestamp:
12/07/2012 11:24:51 PM (13 years ago)
Author:
MikeSchinkel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22802, comment 10

    v1 v2  
    22> I like this idea. Not sure about the global variables – these are hard to debug. And I think `wp_include_plugin()` would be easier to understand than `load`.
    33
    4 My code was a starting point and I'd be happy with anything that addresses the core concept; to capture the known filename at the time of include so it can be made available to the plugin. 
     4The patch was just a proposed starting point and I'd be happy with anything that addresses the core concept; to capture the known filename at the time of include so it can be made available to the plugin. 
    55
    66Global vars are easy but there are other ways to handle it, all depends on what the core team/community prefers today; I know preferred practices have evolved over the years.
    77
    8 BTW, there is an existing `load_theme()` function which is why I named it `wp_load_plugin()`, but I really have no opinion what it's called because it'd be (mostly?) only used internally in core.
     8BTW, there is an existing `load_theme()` function which is why I named it `wp_load_plugin()`, but I really have no opinion what it's called because it'd ''(mostly?)'' only be used internally in core.