WordPress.org

Ready to get started?Download WordPress

Forums

All In One Favicon
[resolved] Fix For Warning Errors In Update To 4.2 (3 posts)

  1. Nathaniel Bailey
    Member
    Posted 1 year ago #

    Ok so quite a few people have updated and noticed the warning error message in the wp admin (not displayed on the front end), so I did a little digging in the code and found it to be an easy fix that anyone could do if they want the warning messages gone before techotronic releases an update to fix it.

    Simply head to the file in the warning and change the following lines of code from:

    'frontendICO' => _('ICO',AIOFAVICON_TEXTDOMAIN),
            'frontendGIF' => _('GIF',AIOFAVICON_TEXTDOMAIN),
            'frontendPNG' => _('PNG',AIOFAVICON_TEXTDOMAIN),
            'frontendApple' => _('Apple Touch Icon',AIOFAVICON_TEXTDOMAIN)
          );
    
          //mapping of favicon types to translatable Strings
          $this->aioFaviconBackendMap = array(
            'backendICO' => _('ICO',AIOFAVICON_TEXTDOMAIN),
            'backendGIF' => _('GIF',AIOFAVICON_TEXTDOMAIN),
            'backendPNG' => _('PNG',AIOFAVICON_TEXTDOMAIN),
            'backendApple' => _('Apple Touch Icon',AIOFAVICON_TEXTDOMAIN)

    Change to:

    'frontendICO' => __('ICO',AIOFAVICON_TEXTDOMAIN),
            'frontendGIF' => __('GIF',AIOFAVICON_TEXTDOMAIN),
            'frontendPNG' => __('PNG',AIOFAVICON_TEXTDOMAIN),
            'frontendApple' => __('Apple Touch Icon',AIOFAVICON_TEXTDOMAIN)
          );
    
          //mapping of favicon types to translatable Strings
          $this->aioFaviconBackendMap = array(
            'backendICO' => __('ICO',AIOFAVICON_TEXTDOMAIN),
            'backendGIF' => __('GIF',AIOFAVICON_TEXTDOMAIN),
            'backendPNG' => __('PNG',AIOFAVICON_TEXTDOMAIN),
            'backendApple' => __('Apple Touch Icon',AIOFAVICON_TEXTDOMAIN)

    All that I have done is added an extra _ to each line (changing each _ to _e would also work, but I thought adding another _ looked easier to the eye when checking over the code in the future), which fixes the problem and will stop displaying the warnings :)

    http://wordpress.org/extend/plugins/all-in-one-favicon/

  2. techotronic
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    I just released 4.2.1 where this is fixed.
    Weird, I didn't have any errormessages on my WordPress installation...

    Cheers,
    Arne

  3. Nathaniel Bailey
    Member
    Posted 1 year ago #

    Thanks for the update Arne, my wp aint showing it in the updates area yet, any idea when this should be available to update via wp admin?

    It was the update that I just done that had the warnings in the admin area (the same with all the other threads), so I thought I would share the code I did to fix it and remove the warnings :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.