The preferred way of contributing patches to DokuWiki is using Github pull request, this makes it much easier to review the code collaboratively and discuss it before applying it to the code base.
When the patch has been applied, don't forget to update the DokuWiki Manual . You can use a link to devel:develonly to inform users that this feature is not available in the latest stable release. When this documentation update is not yet performed, in Github the label
needDocUpdate should be added.