Preheat oven to 375 degrees. Line two 12 cup cupcake pans with 24 cupcake liners. Set aside.
In a large bowl, sift together the flours, baking powder and soda, salt and spices. Set aside.
In the bowl of an electric mixer, mix the oil, brown sugar, sugar and eggs on medium speed until the mixture is thickened, about two minutes. Add the vanilla extract and blend thoroughly. All at once, add the dry ingredients and blend on low speed until just moistened. Add the grated pears and zucchini and pecans if using, and fold in on low speed.
Fill each cupcake liner with a scant ¼ cup of batter (a standard size ice cream scoop is very helpful here). Bake for 15 to 20 minutes, or until the muffins are golden brown and a tester inserted in the center of a muffin comes out clean.
Allow muffins to cool in the pan for 10 minutes, then remove and cool completely on a rack.