It appears that CustomEditor is no longer in includes/Wiki.php like the documentation says it is.[0]
Any idea where this hook relocated to?
Thank you,
Derric Atzrott
Computer Specialist
Alizee Pathology
[0]: https://www.mediawiki.org/wiki/Manual:Hooks/CustomEditor
On Wed, Jul 24, 2013 at 8:58 AM, Derric Atzrott < datzrott@alizeepathology.com> wrote:
It appears that CustomEditor is no longer in includes/Wiki.php like the documentation says it is.[0] Any idea where this hook relocated to?
It was moved to includes/EditAction.php in commit d03087df[0]. I updated the documentation.
I found this out by using git grep and git blame. The first searches the codebase for lines that contain some string; the second associates a line with the commit that introduced or modified it.
$ git grep -n CustomEditor HISTORY:6450:* Introduce 'CustomEditor' hook; see docs/hooks.txt for more information docs/hooks.txt:840:'CustomEditor': When invoking the page editor includes/actions/EditAction.php:48: if ( wfRunHooks( 'CustomEditor', array( $page, $user ) ) ) {
$ git blame includes/actions/EditAction.php -L48,48 d03087df (Krinkle 2012-01-17 19:56:08 +0000 48) if ( wfRunHooks( 'CustomEditor', array( $page, $user ) )
Now you can run "git log -1 d03087df" to read the commit message that accompanied the change.
If you prefer a more graphical approach, you can use GitHub's code search. Go to https://github.com/wikimedia/mediawiki-core and enter 'CustomEditor' in the search box at the top.
[0]: https://git.wikimedia.org/commit/mediawiki%2Fcore/d03087df359e4c5bdc2dd0cff0...
wikitech-l@lists.wikimedia.org