{"id":5842,"date":"2018-11-04T13:17:07","date_gmt":"2018-11-04T11:17:07","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=5842"},"modified":"2018-11-04T13:17:07","modified_gmt":"2018-11-04T11:17:07","slug":"support-registration-with-wfloadextension","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2018\/11\/04\/support-registration-with-wfloadextension\/","title":{"rendered":"Support registration with wfLoadExtension()"},"content":{"rendered":"<p>Since MediaWiki 1.25, the suggested method of\u00a0<a href=\"https:\/\/www.mediawiki.org\/wiki\/Manual:Extension_registration\">registering extensions<\/a>\u00a0has been to use\u00a0<code>wfLoadExtension()<\/code>\u00a0instead of a direct\u00a0<code>require_once<\/code>. AddBodyClass currently (v1.2.0 from 2016-03-21) still uses the old style, so I&#8217;m opening this issue to suggest converting the extension to use the new method.<\/p>\n<p>I&#8217;m also preparing a pull request with the minimal changes that I think should accomplish this, and I&#8217;ll post it next.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since MW1.25, the suggested method of registering extensions has been to use wfLoadExtension(). AddBodyClass still uses the old style.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[1519],"class_list":["post-5842","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-mediawiki","sijainti-github"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5842","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=5842"}],"version-history":[{"count":1,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5842\/revisions"}],"predecessor-version":[{"id":5844,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5842\/revisions\/5844"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=5842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=5842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=5842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}