Update docs to caution against use of create_function(). Per bug 15476.
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 12 Sep 2008 02:45:36 +0000 (02:45 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 12 Sep 2008 02:45:36 +0000 (02:45 +0000)
docs/hooks.txt

index 9e9dbf9..440b251 100644 (file)
@@ -198,6 +198,10 @@ system (LDAP, another PHP program, whatever), you could do:
 Returning false makes less sense for events where the action is complete, and
 will normally be ignored.
 
+Note that none of the examples made use of create_function() as a way to
+attach a function to a hook. This is known to cause problems (notably with 
+Special:Version), and should be avoided when at all possible.
+
 ==Using hooks==
 
 A calling function or method uses the wfRunHooks() function to run the hooks