[wp-trac] [WordPress Trac] #13218: Allow to specify name of drop-in which is not a plugin
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 7 03:49:48 UTC 2011
#13218: Allow to specify name of drop-in which is not a plugin
----------------------------+-----------------------------
Reporter: sirzooro | Owner: nacin
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Future Release
Component: Administration | Version: 3.0
Severity: normal | Resolution:
Keywords: needs-patch |
----------------------------+-----------------------------
Comment (by strider72):
This seems pretty legit to me, as drop-ins do not operate as normal
plugins. They're really something else. This could be as simple as
adding "Drop-in Name" as a header to look for with the known drop-in
files. Such header would show up on the Drop-Ins page in Admin, but would
be ignored by the other existing "plugins" functions.
However, for backwards compatibility we should also allow the drop-ins
list to recognize "Plugin Header" of that is present instead.
Within Core we could create a new wrapper for get_file_data() -- call it
get_drop-in_data() perhaps. It would look for both "Drop-in Name" and
"Plugin Name", with "Drop-in Name" taking precedence if both are present.
Then drop-ins that are having issues with showing up as regular plugins
could simply switch to the new header and all is well. Should be a
relatively easy patch I would think.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13218#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list