• 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:

    if(defined(WP_DEFAULT_THEME))

    should be

    if(defined('WP_DEFAULT_THEME'))

    And the if statement on line 22, change:

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

    to

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

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

    http://wordpress.org/plugins/safe-mode/

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

    (@wpkonsulent)

    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 🙂

    Thread Starter Scriptrunner (Doug Sparling)

    (@scriptrunner)

    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 🙂

    Regards,
    ==
    doug

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