WordPress.org

Ready to get started?Download WordPress

Forums

Safe Mode
[resolved] Bug - twentythirteen never used due to typo (3 posts)

  1. Scriptrunner (Doug Sparling)
    Member
    Posted 9 months ago #

    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/

  2. Uffe Fey
    Member
    Plugin Author

    Posted 9 months ago #

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

  3. Scriptrunner (Doug Sparling)
    Member
    Posted 9 months ago #

    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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.