In a large bowl, whisk together the flours, baking soda, and salt. Set aside.
In a separate bowl, use an electric mixer to cream the butter, sugars, eggs, and vanilla together.
Slowly add the flour mixture to the butter mixture until well combined.
Fold in the chocolate chips and walnuts (if using). You may need to use some elbow grease here!
Spread the batter into a rectangular baking dish in one even layer, and smooth the top. Bake until golden brown on top, about 30 to 35 minutes. Let it cool then cut into bars and serve.