Support » Plugin: Safe Mode » Bug – twentythirteen never used due to typo

  • There’s a typo in loader/safe-mode-loader.php, lines 47 & 48:

    if(array_key_exists('twentytthirteen', $themes))
        return 'twentytthirteen';

    This should be:

    if(array_key_exists('twentythirteen', $themes))
        return 'twentythirteen';

    Also, as I like to recommend this plugin in the WordPress forums, it would nice if you could fix the warnings that displayed when WordPress is in DEBUG mode. Specifically, line 38 in loader/safe-mode-loader.php:


    should be


    And the if statement on line 22, change:

    if($_GET['safe_mode'] == '1')


    if(isset($_GET['safe_mode']) && $_GET['safe_mode'] == '1')

    Thank you – this would make this awesome plugin even more awesome!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Uffe Fey


    Hi Doug,

    Of course. I can’t believe I didn’t catch that typo.

    I’ve just pushed an update to the plugin, it should be available from your dashboard very soon. I made sure to give you credit in the changelog 🙂

    Hi Uffe,

    No worries…thank you for the fix and the credit!

    I’ll have a (very small) feature request for you at some point 🙂


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug – twentythirteen never used due to typo’ is closed to new replies.