Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: How hide an xprofile field group on profile edit page?

@danbp

Participant

How to work with versionned file from SVN is too long to explain in a forum topic. Google around this subject or see on WP codex. But it is not necessary to learn that for just this modification.
In your (this) case, it is very simple to do in fact.

As you can see, the patch contains code, highlighted in red and green in regards of the line numbers he belongs to.

The red code is the actual code (the one who should be modified)
and the green code is the new one who replace the red line.

To do it correctly, you check the line number on the patch and read attentively the code. Not for learning it, but to have a visual memory of it. 😉

You do the same in your file, with help of a text editor like notepad+ which shows your file line numbers.
You erase the red part and you copy/paste the green part at the same place.

When finished, your file must only contain the green part. Or to avoid any error, you can comment the old code and add the new code, so you could revert back if needed. Or you can also made a copy and put it in a safe place before modifying the original file.

A patch also contains code who isn’t highlighted before and after the modified lines. So you can easyly check what you do and where all this happens.

Hope to be clear.

Skip to toolbar