Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other How to make and document changes to a wordpress plugins javascript files? Reply To: How to make and document changes to a wordpress plugins javascript files?

#201471
Crssp
Participant

I came up with a quick way to document my changes to the original plugins listing.js files. I commented all my changes with:
// clientname
In the end it was just knowing how to better use the notepad++ editor.
1. Use Ctrl + F and search for clientname
2. Click the button Find All in Current Document
3. This opens a list of all the commented changes made to the document, in a panel at the bottom of the editor.
4. From there you can copy all the changes by using Right click Select All and Copy.
5. Copy all those commented changes along with their line numbers easily, to a local file for safe keeping and reuse.

Caveat: Editing this file has to be redone on every plugin upgrade, unless you use some sort of file Difference checker compare the file to the previous versions listing.js in this case, and if there are no changes just copy in the edited version. Better than nothing either way.

Who’s got something better :)~