Making WordPress.org

Changes between Initial Version and Version 1 of Ticket #2100, comment 2


Ignore:
Timestamp:
07/14/2017 08:24:24 PM (7 years ago)
Author:
xkon
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2100, comment 2

    initial v1  
    1 Alrighty, I'm sure that I've found the way
    2 
    3 I've originally tested by changing `'username' => $postmeta['author_name'][0],` to get `author_id` instead and that worked fine.
    4 
    5 So I've created an extra var `'userId'    => $postmeta['author_id'][0],` and changed the index.jsx accordingly with `href={ url + author.userId }` .
    6 
    7 My problem is that I have no idea how to recompile it into front-end.js so I can't see the changes to be sure they work... ( I know they should be working but just to be sure ).
    8 
    9 Shouldn't the recompile happen automatically or something?
    10 
    11 By the way, I've never worked with React so this was a good-first-bug for me to try and tackle I guess :D .
     1I made the changes ( '''2100.diff''' ) into the .jsx + the .php file. Unfortunately I don't know how to compile react. But I tested it by manually replacing the var name in the front-end.js and it worked.. So when compiled it should be working as well.
    122
    133Best regards,