Donor's name is overwritten with name on Paypal account
I have set up a contribution page using Paypal Express (the one in core). I have added a profile which includes the first and last names of the contact. But when the contact is created, these names are not used, and the contact gets the name from the Paypal account instead. And if the contact already exists, then their name gets overwritten with the name from the Paypal account.
It seems this has been an issue since 2017, or perhaps it is a regression. The following bug report is still open.
I've tested the fix from here (although the line number has changed) https://civicrm.stackexchange.com/a/21496/465 and it works. The name does not get overwritten, and the paypal name is saved into the "name" field of the billing address (which AFAICS only exists in the database, not the GUI).
I'll do a merge request for it now. But the client I'm doing this for is on the ESR release. How can I get the merge request into that too?