Closed santilin closed 2 years ago
@santilin Before I do a line-by-line review of the code, can you please push a commit to fix the indentation, it seems to be all over the place. According to WPCS, please use tabs for indentation, and spaces for alignment only.
@santilin Before I do a line-by-line review of the code, can you please push a commit to fix the indentation, it seems to be all over the place. According to WPCS, please use tabs for indentation, and spaces for alignment only.
Done @schlessera
@santilin Are you still interested in working on this?
Gentle ping? :D
In the issue there is a suggestion to refactor code from the
i18n
command. However, the code in thei18n
command can't be used as is because it only handles functions, and theplugin.php
header doesn't have to have a function on it.I have replaced the former
preg_match
on the contents of all the php files in the plugin into a more sophisticated way of extracting the version tag:token_get_all
to parse the php filedoc_block
, parse it to get all the tagsversion
tag.It's worth noting that the tags might be specified as @version or Version: and that a leading * might be in the line.