[wp-trac] [WordPress Trac] #41151: Fatal error on Plugin Activation if it bundled in theme
WordPress Trac
noreply at wordpress.org
Mon Jun 26 13:38:11 UTC 2017
#41151: Fatal error on Plugin Activation if it bundled in theme
------------------------------------------------+--------------------------
Reporter: rinkuyadav999 | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting
Component: Plugins | Review
Severity: normal | Version:
Keywords: has-screenshots dev-feedback close | Resolution: wontfix
| Focuses:
| administration
------------------------------------------------+--------------------------
Changes (by knutsp):
* status: new => closed
* version: trunk =>
* resolution: => wontfix
Comment:
This goes for any function in core or plugin, except "pluggable"
functions.
If you copy a function name from anywhere in the WordPress ecosystem, and
elect not to prefix it, or replace the prefix, this is what you have to
expect.
And WordPress Core cannot "fix" this for all plugins, so why for Hello
Dolly, as you say is just an example?
Always prefix global names. `hello_dolly_get_lyrics` is perfectly
prefixed, and thus works as a good example on how to make a simple plugin.
Closing this. Discussion can continue on closed tickets.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41151#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list