[wp-hackers] Plugin Management issue...
David Chait
davebytes at comcast.net
Tue Jun 29 06:15:29 UTC 2004
I have a bunch of plugins, something like seven now, maybe eight by
tomorrow. That is, MY own plugins... Some are interdependent, some are
optionally, some are dependent, some are completely independent... fun. ;)
When they are interdependent, or dependent, there are cases where it'd make
my life MUCH easier if I knew/controlled the loading order of things. I had
(apparently stupidly) assumed alphabetical load-order, given that the list
is alphabetically sorted. From my (hours) debugging the code, it looks like
it keeps a table of which ones have been activated, and that table seems to
be in timestamp-of-activation order. Which is to say random.
I think I can overhaul some of my code, but as these things get larger and
more complex this will continue to be a bigger pain. Is there a problem
with changing the load order to either:
- plugin-name alpha sorted, or
- plugin-filename alpha sorted?
Again, I wouldn't have even brought it up if it wasn't that I had made the
assumption from the 'presentation' of the plugins that they'd load alpha,
and had very unhappy code til I figured it out (there's something weird in
php where at certain times, if you try to include a file with an incorrect
path, php exits, throws no error itself, throws no error to a custom error
handler, and dumps a vanilla [html][body][/body][/html] blank page out...
what a PAIN).
While I'm at it, I have a 'missing hook point'... well, at least one,
probably more as I try to migrate to 1.2/1.3. ;) My 'per-page titles' for
multipage [more] posts hooks in as part of the initial [more] parsing... so,
I either need to hand that over for inclusion into the core (fine by me!),
or need a way to hook in at that point.
-d
More information about the hackers
mailing list