wordpress-importer icon indicating copy to clipboard operation
wordpress-importer copied to clipboard

.bypostauthor class is not added at comments

Open DesignerThan95 opened this issue 7 years ago • 2 comments

At the "Template: Comments" Post, the .bypostauthor class is not added to the comments, because they don't have the right user_id set.

DesignerThan95 avatar Oct 06 '19 09:10 DesignerThan95

I have added code that searches for the user name of the comment and if one is found, the id gets added to the comment. Through that change, the .bypostauthor Class gets added to the comments.

DesignerThan95 avatar Oct 06 '19 09:10 DesignerThan95

As I said in my pull request I tested the Import again and if the user_id will be set right. The data I import is the following: https://github.com/WPTRT/theme-unit-test I do import the users of the test data and dont take an existing user and dont create a new one. And if I do that the .bypostauthor class is not added because the user_id of the comment is zero. Do you guys have a tip for me where I should look for a solution?

Then I have tried it with creating new users and I registered that although the posts are transferred to the comments werent. Is that thought so or would it be good to solve that? If there should be a solution, I could take some time and learn how to solve it if you guys give me a tip where I should start looking.

DesignerThan95 avatar Oct 07 '19 17:10 DesignerThan95