Submit WordPress theme without sidebar / register_sidebar hack

Below is what I used to get past Theme Check for WordPress since it required register_sidebar, but I did not have any sidebars.

<?php
        /**
         * Hack to get past theme check, which requires register_sidebar, 
         * though I am not going to have sidebar option as a part of my theme.
         *
         * I did not want to actually call this because I did not want to have the widgets
         * option show, when I don't even have a sidebar!
         */
        if(0){
                ?>register_sidebar();<?php
        }
?>

Leave a Reply