Picture a shed with 3/8? SmartSide siding. Picture a motion sensor fixture mounted on the outside of the shed. The fixture is screwed directly to the siding through the holes that would normally be used to mount it to an electrical box.
Instead of using an old work octogon box, the owner screwed a square piece of 1x6 to the inside wall of the shed and, after punching out the center hole in the back of an octagon box, he mounted the octagon box to the 1x6 with the large open side facing into the shed. (The 1x6 also supplies support for the screws that hold the fixture to the outside wall.)
He then drilled a 1/2" hole through the 1x6 and siding and passed the wires from the fixture through the hole into the box. The Romex for the power is attached to the octagon box with a standard Romex connector.
So basically the fixture wires go through about an inch of wood before they enter the back of the electrical box. The hole in the wood is smaller then the hole in the box, so there's no chance of the wires contacting the edge of the metal hole.
Is it OK to pass the wires through the wood or should the fixture be mounted directly to the electrical box?